QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#863390#9881. Diverge and Convergeucup-team4125WA 2ms3840kbC++171.9kb2025-01-19 16:36:432025-01-19 16:36:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
1 2
2 3
3 4
1 2
2 4
2 3

output:

1 3 2 
1 2 3 

result:

ok Correct, N = 4

Test #2:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

2
1 2
2 1

output:

1 
1 

result:

ok Correct, N = 2

Test #3:

score: 0
Accepted
time: 1ms
memory: 3584kb

input:

7
1 2
1 3
2 4
2 5
3 6
3 7
1 5
1 6
1 7
5 2
6 3
7 4

output:

3 6 4 1 2 5 
6 3 4 1 2 5 

result:

ok Correct, N = 7

Test #4:

score: -100
Wrong Answer
time: 2ms
memory: 3840kb

input:

1000
780 67
364 281
934 245
121 472
460 233
574 534
91 687
91 832
413 613
815 638
519 196
992 120
150 157
198 365
643 700
279 698
623 215
578 330
869 333
874 570
879 697
897 671
962 670
108 137
779 9
988 91
919 314
696 722
431 270
810 692
769 49
254 915
737 580
229 888
379 612
19 161
787 346
280 753...

output:

25 952 775 411 424 925 466 440 798 116 493 210 1 142 819 562 39 100 904 384 271 304 596 316 432 587 201 801 136 247 969 547 401 751 390 267 198 804 248 345 608 423 916 366 880 331 898 597 458 649 385 274 14 619 687 734 89 256 674 219 625 707 354 850 806 704 662 343 146 312 92 891 42 280 605 752 350 ...

result:

wrong answer Wrong, N = 1000, not forming a tree