QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#658490#9477. Topological Sortucup-team4411#WA 17ms6860kbC++141.2kb2024-10-19 16:54:392024-10-19 16:54:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
1 3 2

output:

4

result:

ok "4"

Test #2:

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

input:

5
1 2 3 4 5

output:

1024

result:

ok "1024"

Test #3:

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

input:

6
4 2 1 5 6 3

output:

4096

result:

ok "4096"

Test #4:

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

input:

492
397 486 227 395 58 452 172 216 130 181 268 482 85 209 365 104 373 90 260 326 252 96 267 106 102 398 441 41 292 314 12 78 242 353 153 424 179 86 299 228 54 390 73 465 396 349 4 10 451 99 342 250 391 6 323 197 159 47 136 473 392 77 125 362 418 255 291 13 238 339 8 28 413 121 384 157 152 23 221 305...

output:

73428942

result:

ok "73428942"

Test #5:

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

input:

117
114 89 34 77 56 24 36 97 57 75 25 99 51 87 31 53 20 18 71 88 92 11 101 5 105 81 113 110 86 37 79 33 61 13 9 2 48 7 63 3 45 4 74 102 38 30 23 55 115 112 44 76 35 62 10 103 21 72 106 40 68 93 22 66 50 52 17 58 78 95 116 8 91 82 65 1 47 19 15 60 27 80 26 100 6 107 117 98 16 69 83 109 12 96 111 32 2...

output:

973031884

result:

ok "973031884"

Test #6:

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

input:

142
5 91 117 42 103 25 15 68 17 57 6 108 94 139 49 61 118 130 50 36 39 135 53 113 73 16 75 134 37 124 140 93 78 105 20 136 59 48 10 9 126 99 119 1 88 86 38 69 115 62 97 55 3 85 23 82 65 84 106 83 24 31 131 109 44 11 8 33 89 125 141 112 128 122 74 22 123 2 43 129 56 111 87 34 47 100 12 71 120 81 28 2...

output:

689040121

result:

ok "689040121"

Test #7:

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

input:

2
1 2

output:

2

result:

ok "2"

Test #8:

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

input:

2
2 1

output:

1

result:

ok "1"

Test #9:

score: -100
Wrong Answer
time: 17ms
memory: 6860kb

input:

194626
192391 66573 51175 20393 139133 182361 61827 110888 4046 131771 18067 2183 160224 138697 39109 20417 69500 109571 52869 129131 77495 95741 123039 79656 88279 149323 76536 158952 163825 12131 178853 174294 83666 103342 100664 149219 136306 81716 100831 29396 128703 43798 56614 184849 170761 14...

output:

943122676

result:

wrong answer 1st words differ - expected: '768358540', found: '943122676'