QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#497795#4356. GiraffesMinaRagy0632 79ms1005024kbC++201.9kb2024-07-29 18:03:462024-07-29 18:03:48

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 55ms
memory: 1004764kb

input:

1
1

output:

0

result:

ok single line: '0'

Test #2:

score: 10
Accepted
time: 40ms
memory: 1004844kb

input:

2
2 1

output:

0

result:

ok single line: '0'

Test #3:

score: 10
Accepted
time: 40ms
memory: 1004800kb

input:

3
1 2 3

output:

0

result:

ok single line: '0'

Test #4:

score: 10
Accepted
time: 36ms
memory: 1004776kb

input:

4
3 1 4 2

output:

2

result:

ok single line: '2'

Test #5:

score: 10
Accepted
time: 36ms
memory: 1004872kb

input:

5
3 4 5 1 2

output:

2

result:

ok single line: '2'

Test #6:

score: 10
Accepted
time: 40ms
memory: 1004856kb

input:

6
1 5 6 2 4 3

output:

2

result:

ok single line: '2'

Test #7:

score: 10
Accepted
time: 23ms
memory: 1005024kb

input:

6
1 6 3 4 2 5

output:

0

result:

ok single line: '0'

Test #8:

score: 10
Accepted
time: 60ms
memory: 1004888kb

input:

7
5 3 4 6 2 7 1

output:

0

result:

ok single line: '0'

Test #9:

score: 10
Accepted
time: 48ms
memory: 1004864kb

input:

7
5 3 7 1 2 6 4

output:

3

result:

ok single line: '3'

Test #10:

score: 10
Accepted
time: 44ms
memory: 1004776kb

input:

7
5 2 3 6 7 1 4

output:

2

result:

ok single line: '2'

Subtask #2:

score: 22
Accepted

Test #11:

score: 22
Accepted
time: 55ms
memory: 1004776kb

input:

8
7 2 1 8 3 5 4 6

output:

3

result:

ok single line: '3'

Test #12:

score: 22
Accepted
time: 55ms
memory: 1004844kb

input:

9
3 1 5 6 8 4 7 9 2

output:

3

result:

ok single line: '3'

Test #13:

score: 22
Accepted
time: 60ms
memory: 1004780kb

input:

10
4 6 5 7 1 2 3 8 9 10

output:

2

result:

ok single line: '2'

Test #14:

score: 22
Accepted
time: 55ms
memory: 1005004kb

input:

11
2 10 3 11 1 5 8 6 4 7 9

output:

5

result:

ok single line: '5'

Test #15:

score: 22
Accepted
time: 32ms
memory: 1004860kb

input:

12
2 7 3 1 9 4 8 12 11 6 5 10

output:

5

result:

ok single line: '5'

Test #16:

score: 22
Accepted
time: 55ms
memory: 1004996kb

input:

12
11 7 4 10 8 3 1 9 12 6 5 2

output:

5

result:

ok single line: '5'

Test #17:

score: 22
Accepted
time: 43ms
memory: 1004804kb

input:

13
11 4 8 5 9 2 3 7 13 12 1 10 6

output:

7

result:

ok single line: '7'

Test #18:

score: 22
Accepted
time: 36ms
memory: 1004788kb

input:

13
6 3 10 8 13 11 4 1 7 5 12 9 2

output:

7

result:

ok single line: '7'

Test #19:

score: 22
Accepted
time: 44ms
memory: 1004832kb

input:

13
11 4 8 2 7 6 5 12 10 1 13 9 3

output:

5

result:

ok single line: '5'

Test #20:

score: 22
Accepted
time: 31ms
memory: 1004728kb

input:

13
4 2 6 7 11 5 3 9 10 1 8 13 12

output:

6

result:

ok single line: '6'

Subtask #3:

score: 0
Wrong Answer

Test #21:

score: 27
Accepted
time: 31ms
memory: 1004780kb

input:

29
7 22 11 16 27 1 24 12 6 21 13 2 10 8 25 15 4 19 17 9 23 5 14 20 18 28 26 29 3

output:

17

result:

ok single line: '17'

Test #22:

score: 27
Accepted
time: 47ms
memory: 1005016kb

input:

96
80 30 84 26 53 63 96 48 15 40 35 10 81 68 55 57 25 2 41 56 64 65 42 74 93 69 58 32 21 85 14 79 22 38 51 8 5 27 19 20 16 94 31 23 86 36 17 77 75 62 12 87 71 76 11 13 52 44 45 4 46 60 54 3 73 70 72 66 67 92 88 59 61 7 34 89 24 49 18 37 28 91 47 1 90 9 95 82 83 33 29 78 50 6 43 39

output:

73

result:

ok single line: '73'

Test #23:

score: 27
Accepted
time: 64ms
memory: 1004892kb

input:

185
152 65 146 109 33 14 44 141 174 154 37 11 177 39 82 58 70 36 81 163 76 98 20 182 129 142 64 5 126 91 25 55 42 105 173 155 121 96 50 102 178 66 22 168 99 7 115 183 27 95 93 23 3 181 106 84 89 171 18 148 156 41 162 47 139 112 86 35 97 134 12 77 160 13 34 118 104 111 15 2 46 51 136 87 110 145 71 15...

output:

151

result:

ok single line: '151'

Test #24:

score: 27
Accepted
time: 79ms
memory: 1004816kb

input:

242
3 137 21 188 170 212 192 186 122 144 165 43 27 109 156 52 108 222 98 151 155 228 183 124 7 17 26 217 68 82 229 1 169 92 47 206 29 145 149 241 185 196 99 44 67 51 139 153 141 128 73 104 142 219 119 50 36 161 178 18 11 193 54 107 70 102 49 103 20 13 78 9 59 40 63 30 31 12 159 45 234 60 69 225 242 ...

output:

202

result:

ok single line: '202'

Test #25:

score: 0
Wrong Answer
time: 76ms
memory: 1004896kb

input:

289
248 83 121 198 220 113 282 276 157 88 211 15 187 109 110 180 127 246 86 241 116 69 255 11 245 91 240 58 242 212 52 141 38 138 75 239 31 270 124 151 247 94 160 188 237 54 139 40 5 192 85 92 165 131 207 260 278 251 106 269 226 234 105 222 70 230 146 283 254 32 66 199 178 231 256 258 73 221 261 76 ...

output:

267

result:

wrong answer 1st lines differ - expected: '245', found: '267'

Subtask #4:

score: 0
Wrong Answer

Test #31:

score: 0
Wrong Answer
time: 35ms
memory: 1004912kb

input:

2317
1841 533 998 38 1358 1204 1174 176 581 1719 550 906 35 101 442 1068 1781 601 1368 2190 2095 919 2186 1134 1814 625 90 2007 653 186 204 997 1607 1675 45 806 483 299 27 935 1070 1425 1822 1712 2074 2259 264 840 1960 1045 1742 1185 577 142 980 151 2136 2143 955 462 1373 395 1300 185 637 734 803 13...

output:

2315

result:

wrong answer 1st lines differ - expected: '2188', found: '2315'