QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#514257#1168. Find the XORHuangHanShengWA 29ms6884kbC++141.9kb2024-08-10 23:43:572024-08-10 23:43:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 5860kb

input:

8 10 7
1 2 662784558
3 2 195868257
3 4 294212653
4 5 299265014
6 5 72652580
6 7 29303370
7 8 183954825
2 1 752722885
5 3 197591314
8 4 877461873
4 8
5 7
6 7
2 3
7 8
3 4
2 7

output:

0
713437792
738051848
716356296
736682272
1003204975
987493236

result:

ok 7 numbers

Test #2:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

2 1 1
1 2 31
1 2

output:

31

result:

ok 1 number(s): "31"

Test #3:

score: 0
Accepted
time: 0ms
memory: 5820kb

input:

2 3 1
1 2 71
1 1 86
2 2 48
1 2

output:

119

result:

ok 1 number(s): "119"

Test #4:

score: 0
Accepted
time: 17ms
memory: 3964kb

input:

500 700 100000
2 1 147383090
2 3 981594190
3 4 948414594
5 4 739739766
6 5 586581109
6 7 418429007
8 7 852078976
8 9 233093009
9 10 712947390
10 11 130658520
12 11 332650604
12 13 52607525
14 13 260905070
14 15 962878811
16 15 195610313
16 17 303149251
18 17 140878375
19 18 338952072
20 19 105254306...

output:

276955137
0
0
0
255950049
276955137
276955137
276955137
80874004
276955137
0
276955137
888035320
0
488872381
804414943
276955137
0
620785200
26674723
923328495
0
276955137
354542402
0
0
276955137
0
0
65166720
26464393
605344613
200770908
705353995
276955137
549239290
1041115160
0
276955137
276955137...

result:

ok 100000 numbers

Test #5:

score: 0
Accepted
time: 17ms
memory: 3856kb

input:

500 700 100000
2 1 147383090
3 1 502825032
2 4 739739766
5 4 924173383
5 6 852078976
7 3 155380968
8 1 130658520
9 6 790080077
1 10 260905070
4 11 501238476
3 12 303149251
1 13 829675709
14 13 1052543062
15 10 218467971
11 16 640919377
17 2 338021594
8 18 480588661
19 18 481230688
5 20 305467460
20 ...

output:

1072557464
200285858
38794233
0
0
288837123
59655647
88049516
0
860362443
0
288837123
263423587
272302874
288837123
288837123
288837123
288837123
288837123
564055414
288837123
366562468
288837123
288837123
288837123
300993538
288837123
87399008
953617005
62945233
0
288837123
0
0
776022391
0
91616542...

result:

ok 100000 numbers

Test #6:

score: -100
Wrong Answer
time: 29ms
memory: 6884kb

input:

80000 100000 100000
2 1 1023327746
2 3 818417961
4 3 126848850
4 5 51064172
5 6 1000986215
6 7 59810073
8 7 798687333
9 8 74142106
10 9 244018456
11 10 712187193
11 12 507813741
13 12 829264806
13 14 408747511
15 14 711278199
16 15 669721451
17 16 896629155
17 18 522370852
18 19 510712839
19 20 4174...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

wrong answer 1st numbers differ - expected: '16975875', found: '0'