QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#144757#4191. Hectic Harbour IIZhangYiDeRE 3ms3852kbC++142.5kb2023-08-21 18:27:032023-08-21 18:27:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 3 2
2 0 3
1 4

output:

3

result:

ok single line: '3'

Test #2:

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

input:

6 4 3
2 4 0 1
6 3 5

output:

4

result:

ok single line: '4'

Test #3:

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

input:

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

output:

6

result:

ok single line: '6'

Test #4:

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

input:

3 2 2
3 2
0 1

output:

3

result:

ok single line: '3'

Test #5:

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

input:

7 4 4
0 6 3 1
5 7 2 4

output:

2

result:

ok single line: '2'

Test #6:

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

input:

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

output:

6

result:

ok single line: '6'

Test #7:

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

input:

3 2 2
0 1
2 3

output:

2

result:

ok single line: '2'

Test #8:

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

input:

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

output:

15

result:

ok single line: '15'

Test #9:

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

input:

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

output:

7

result:

ok single line: '7'

Test #10:

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

input:

399 200 200
313 372 375 49 286 369 155 170 188 114 42 289 73 249 70 393 172 207 133 295 327 60 271 72 161 103 92 309 221 85 169 1 333 100 367 259 147 365 389 89 253 38 184 332 0 47 145 300 270 63 41 319 284 107 135 326 329 187 180 383 76 12 213 93 262 26 358 244 395 177 104 98 7 191 118 74 122 398 3...

output:

13

result:

ok single line: '13'

Test #11:

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

input:

193 97 97
36 110 122 193 172 149 63 102 150 21 50 137 2 25 189 146 107 93 47 6 39 192 80 92 23 43 95 30 48 141 99 56 73 118 123 132 143 191 68 15 52 136 14 180 171 35 133 97 115 113 44 66 41 16 161 190 86 55 10 54 131 1 173 153 155 28 12 100 90 158 74 112 114 69 178 179 134 94 151 70 26 165 24 111 3...

output:

13

result:

ok single line: '13'

Test #12:

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

input:

1999 1000 1000
309 1788 1518 1587 1821 1236 904 1853 1622 599 66 1550 733 366 357 187 278 190 1972 1092 1973 286 1458 612 1909 829 399 488 815 1361 845 1656 1336 1991 565 1452 1760 1294 1002 247 397 644 273 814 402 37 1672 1774 55 1363 180 147 1636 995 482 1139 172 1948 431 580 920 848 271 1823 1026...

output:

15

result:

ok single line: '15'

Test #13:

score: 0
Accepted
time: 2ms
memory: 3820kb

input:

20000 10000 10001
9883 14711 10346 8769 11822 17563 10463 5503 1247 8993 1558 17028 655 77 14008 7304 7461 11588 10583 3879 16231 256 1933 18390 7954 6437 15146 3881 10657 5145 11319 1025 4049 7651 8825 11173 10589 16578 2872 3446 9417 6745 14923 13447 3643 2309 7597 3765 17914 6095 1470 11528 16815...

output:

9

result:

ok single line: '9'

Test #14:

score: 0
Accepted
time: 2ms
memory: 3760kb

input:

19030 30 19001
14251 10569 11881 16119 2880 5820 19024 4469 18054 8658 8098 14893 15866 2890 1899 14465 7069 18237 2798 18031 12426 500 14121 17003 10401 16613 12506 8705 15657 247
8132 7096 16560 3133 1666 12317 14885 2797 2446 16850 5195 6333 3141 1894 14293 8298 12558 15923 5710 13758 16956 12104...

output:

13

result:

ok single line: '13'

Test #15:

score: 0
Accepted
time: 3ms
memory: 3852kb

input:

40167 40000 168
7456 29753 30457 14826 28175 1908 39515 24571 1524 9896 2870 3025 38460 15788 286 14553 5875 14649 26432 28204 4710 39486 27216 12597 22453 39599 19407 21533 9909 36250 5204 35786 9614 32173 19491 38676 21815 29319 15124 26344 25894 4851 18646 13994 36641 30019 22334 38480 930 20185 ...

output:

23

result:

ok single line: '23'

Test #16:

score: -100
Runtime Error

input:

399999 200000 200000
98991 228035 191079 109294 45109 259958 228838 196508 123689 174720 958 155295 169919 250579 253195 14648 9714 168581 62550 191609 251316 382472 200019 28849 319628 143617 314937 350279 54701 320846 212855 29815 288369 4356 23726 130122 79710 223894 225102 214605 49355 246868 21...

output:


result: