QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#815179#9881. Diverge and Convergeucup-team1878#WA 456ms4172kbC++237.2kb2024-12-15 06:46:462024-12-15 06:46:47

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3576kb

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: 3608kb

input:

2
1 2
2 1

output:

1
1

result:

ok Correct, N = 2

Test #3:

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

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:

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

result:

ok Correct, N = 7

Test #4:

score: -100
Wrong Answer
time: 456ms
memory: 4172kb

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:

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

result:

wrong answer Wrong, P is not permutation of (1,2,...,N-1)