QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#815176#9881. Diverge and Convergeucup-team1878#WA 461ms4188kbC++237.2kb2024-12-15 06:43:312024-12-15 06:43:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

input:

2
1 2
2 1

output:

1
1

result:

ok Correct, N = 2

Test #3:

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

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

result:

ok Correct, N = 7

Test #4:

score: 0
Accepted
time: 461ms
memory: 4112kb

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:

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

result:

ok Correct, N = 1000

Test #5:

score: 0
Accepted
time: 461ms
memory: 4160kb

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:

418 671 740 240 82 587 672 431 713 486 851 714 94 382 723 179 716 265 297 495 250 80 544 610 19 882 645 147 988 481 220 756 251 203 787 465 345 43 598 964 44 493 751 673 199 188 283 675 595 547 600 886 561 679 952 182 605 249 100 528 132 921 227 769 90 934 622 136 992 666 903 349 938 22 189 30 743 1...

result:

ok Correct, N = 1000

Test #6:

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

input:

1000
795 108
135 674
10 453
622 79
788 110
68 687
973 367
859 1
274 686
978 410
51 450
791 196
715 58
445 692
802 843
644 219
535 565
798 846
6 682
372 227
950 972
72 870
940 245
657 817
715 79
302 450
249 981
342 164
674 677
96 420
334 949
157 511
162 572
912 138
209 886
759 727
167 909
608 916
923...

output:

645 958 206 257 641 961 667 226 251 918 705 948 610 417 616 280 812 403 107 565 126 317 936 903 167 486 158 566 171 335 357 695 704 753 740 53 43 8 980 237 457 896 719 971 848 89 88 525 572 472 61 408 758 71 548 985 581 346 800 839 747 460 947 591 345 78 478 505 603 180 313 270 366 178 706 92 990 69...

result:

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