QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#815198#9881. Diverge and Convergeucup-team1878#TL 1180ms4332kbC++237.4kb2024-12-15 06:57:382024-12-15 06:57:43

详细

Test #1:

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

input:

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

output:

3 2 1
2 3 1

result:

ok Correct, N = 4

Test #2:

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

input:

2
1 2
2 1

output:

1
1

result:

ok Correct, N = 2

Test #3:

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

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 4 1 6 5 2
6 4 1 3 5 2

result:

ok Correct, N = 7

Test #4:

score: 0
Accepted
time: 1180ms
memory: 4332kb

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:

703 448 449 734 134 188 458 215 511 486 602 883 259 538 497 381 286 195 895 484 154 306 128 526 532 509 210 889 375 178 59 837 186 731 314 667 418 530 803 153 131 429 149 124 614 687 775 541 787 28 810 426 297 845 878 868 34 913 956 615 809 462 164 754 938 47 546 310 126 920 72 86 390 947 482 706 85...

result:

ok Correct, N = 1000

Test #5:

score: -100
Time Limit Exceeded

input:

1000
666 194
70 687
680 703
661 583
370 940
560 387
333 171
948 872
606 785
887 95
130 640
845 792
156 125
281 757
287 160
139 736
896 670
345 200
475 429
18 728
520 31
170 53
531 614
22 391
668 228
674 354
807 999
726 288
572 616
586 9
284 8
353 37
102 927
223 63
733 423
253 964
336 483
200 42
177 ...

output:

240 418 671 740 716 82 431 587 672 481 472 465 851 486 382 799 610 882 19 645 44 80 94 751 988 723 250 598 179 147 199 493 297 714 595 59 964 756 622 600 249 787 265 495 345 188 769 544 675 132 992 679 912 666 952 220 934 903 349 938 189 30 743 100 251 605 170 542 203 580 599 713 746 985 269 436 528...

result: