QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#399257#4240. Tree CirclesmonstersqwqWA 69ms6056kbC++203.3kb2024-04-26 08:42:112024-04-26 08:42:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 2
2 3
2
3 1 2 3
2 1 3

output:

2
4

result:

ok 2 number(s): "2 4"

Test #2:

score: -100
Wrong Answer
time: 69ms
memory: 6056kb

input:

1000
251 1
610 251
1 621
610 534
617 1
27 617
54 534
251 435
610 984
1 850
291 610
251 461
51 27
376 617
461 310
36 850
36 351
456 461
461 171
456 294
949 294
688 1
833 610
174 534
435 841
841 60
556 251
251 423
655 376
688 188
610 448
456 549
894 841
65 688
65 522
421 435
382 65
894 613
617 789
880...

output:

-446695968
238281938
294372869
327299953
-849110325
846166609
235732599
-401716681
-782629863
-5954334
-739231532
693331835
943811785
-14961933
-789352429
-357195049
-161806054
532254742
-793111110
-965086881
247024693
198756432
-478897814
969217679
714815804
174286503
-973998294
-343305387
23383279...

result:

wrong answer 1st numbers differ - expected: '275623202', found: '-446695968'