QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#171428 | #7181. Graph Cuts | ucup-team151# | AC ✓ | 2739ms | 406684kb | C++17 | 5.1kb | 2023-09-09 16:58:25 | 2023-09-09 16:58:50 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3748kb
input:
4 5 1 2 1 3 1 4 2 3 2 4 10 + 1 + 2 ? ? ? ? ? - 2 ? ?
output:
5 4 3 2 0 1 0
result:
ok q=10
Test #2:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
0 0 0
output:
result:
ok q=0
Test #3:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
0 0 1 ?
output:
0
result:
ok q=1
Test #4:
score: 0
Accepted
time: 14ms
memory: 4184kb
input:
1000 2000 1 50 1 88 331 1 1 352 1 497 2 32 2 282 550 2 989 2 334 3 3 665 4 38 4 69 4 343 4 451 589 4 917 4 89 5 5 162 675 5 681 6 7 22 127 7 7 592 7 672 787 7 8 310 107 9 9 137 184 9 9 244 378 9 446 9 9 658 883 9 65 10 75 10 414 10 10 468 686 10 245 11 269 11 11 386 403 11 493 11 394 12 493 12 565 1...
output:
1777 275 1287 1286 1474 567 879 1850 1284 890 847 1187 1146 1043 1768 1741 497 1304 837 1183 852 851 89 528 949 278 224 373 1238 1145 1144 895 754 1968 743 1480 573 1775 1562 972 1560 1667 907 1877 1857 1083 1556 971 853 1788 1648 1212 1009 1851 1783 255 1695 1797 509 1588 1390 396 479 476 1860 796 ...
result:
ok q=100000
Test #5:
score: 0
Accepted
time: 1248ms
memory: 401664kb
input:
447 99681 2 1 1 3 4 1 1 5 1 6 1 7 1 8 9 1 10 1 1 11 1 12 1 13 1 14 1 15 1 16 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 1 26 27 1 28 1 1 29 30 1 31 1 1 32 33 1 1 34 1 35 36 1 37 1 38 1 39 1 40 1 1 41 1 42 43 1 44 1 45 1 46 1 1 47 48 1 49 1 1 50 1 51 1 52 53 1 54 1 55 1 1 56 57 1 1 58 59 1 60 1 1 6...
output:
383
result:
ok q=100000
Test #6:
score: 0
Accepted
time: 981ms
memory: 342912kb
input:
447 99681 1 2 3 1 4 1 5 1 1 6 7 1 8 1 9 1 10 1 11 1 1 12 13 1 14 1 15 1 1 16 1 17 18 1 19 1 1 20 21 1 22 1 23 1 24 1 1 25 26 1 27 1 28 1 1 29 1 30 31 1 32 1 1 33 1 34 35 1 1 36 37 1 38 1 1 39 40 1 41 1 42 1 43 1 1 44 45 1 46 1 47 1 48 1 49 1 50 1 1 51 1 52 1 53 1 54 1 55 56 1 1 57 58 1 1 59 1 60 61 ...
output:
70 44 172 103 412 171 400 355 289 436 383 176 142 269 119 79 228 179 337 53 189 186 121 69 330 334 157 2 128 41 18 55 113 37 429 401 285 177 321 346 138 238 421 317 48 52 139 21 229 443 415 148 236 105 227 114 345 82 112 161 301 96 28 40 322 123 445 111 312 394 191 174 377 287 295 75 206 374 430 150...
result:
ok q=100000
Test #7:
score: 0
Accepted
time: 725ms
memory: 250240kb
input:
447 99681 1 2 3 1 1 4 1 5 6 1 7 1 8 1 1 9 10 1 11 1 1 12 1 13 1 14 15 1 16 1 17 1 18 1 1 19 1 20 21 1 1 22 23 1 1 24 25 1 1 26 1 27 1 28 29 1 1 30 1 31 32 1 1 33 34 1 1 35 36 1 37 1 1 38 39 1 40 1 1 41 42 1 1 43 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 1 52 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 61 ...
output:
180 186 1 137 418 307 355 185 54 443 318 93 188 392 124 333 145 103 223 345 429 126 265 37 342 253 306 396 298 8 236 102 68 158 118 34 261 77 413 159 237 324 128 172 162 349 62 184 21 211 7 120 222 196 92 361 220 445 410 152 414 59 317 212 403 33 299 320 411 161 360 181 389 166 142 89 273 250 127 44...
result:
ok q=100000
Test #8:
score: 0
Accepted
time: 563ms
memory: 199212kb
input:
447 99681 2 1 1 3 4 1 1 5 6 1 1 7 1 8 1 9 10 1 1 11 12 1 1 13 14 1 15 1 1 16 1 17 18 1 1 19 20 1 21 1 22 1 1 23 24 1 1 25 26 1 27 1 28 1 29 1 30 1 1 31 32 1 33 1 34 1 35 1 1 36 37 1 38 1 39 1 40 1 1 41 42 1 43 1 1 44 45 1 1 46 1 47 48 1 1 49 50 1 51 1 52 1 1 53 1 54 1 55 1 56 57 1 1 58 59 1 60 1 1 6...
output:
0 127 93 441 27 375 189 235 20 151 414 309 330 191 294 220 177 379 120 217 264 188 292 111 369 290 303 428 203 30 32 99 241 240 118 202 169 312 259 320 353 417 141 396 302 378 29 84 823 342 787 156 286 601 185 391 152 446 445 444 443 442 440 439 438 437 436 435 434 433 432 431 430 429 427 426 425 42...
result:
ok q=100000
Test #9:
score: 0
Accepted
time: 428ms
memory: 132420kb
input:
447 99681 2 1 3 1 1 4 5 1 6 1 7 1 1 8 9 1 10 1 1 11 12 1 13 1 1 14 15 1 1 16 17 1 18 1 1 19 20 1 1 21 1 22 23 1 1 24 1 25 26 1 1 27 28 1 29 1 1 30 31 1 32 1 1 33 34 1 1 35 1 36 37 1 1 38 1 39 40 1 41 1 1 42 43 1 44 1 1 45 1 46 1 47 48 1 1 49 50 1 1 51 52 1 53 1 54 1 1 55 56 1 1 57 1 58 59 1 1 60 61 ...
output:
0 0 0 0 0 0 0 0 81 102 379 526 547 364 378 823 809 824 1267 184 138 191 629 583 288 322 733 393 838 767 281 726 636 1170 416 95 540 861 984 1305 1282 1177 371 437 237 882 682 816 1326 166 308 211 43 339 301 111 101 131 404 556 784 310 255 700 755 656 488 90 436 881 267 712 258 703 535 746 546 319 76...
result:
ok q=100000
Test #10:
score: 0
Accepted
time: 316ms
memory: 76624kb
input:
447 99681 1 2 1 3 4 1 1 5 1 6 1 7 1 8 1 9 1 10 11 1 12 1 1 13 14 1 1 15 16 1 17 1 1 18 1 19 1 20 1 21 22 1 23 1 24 1 25 1 26 1 1 27 1 28 29 1 1 30 31 1 32 1 33 1 1 34 35 1 1 36 1 37 38 1 1 39 40 1 1 41 42 1 43 1 1 44 1 45 46 1 47 1 48 1 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 61 ...
output:
0 0 0 0 173 618 1062 1505 1947 2388 2828 3267 439 884 1328 1771 2213 2654 48 493 189 634 1078 937 1521 1380 57 502 946 1389 1831 1963 1822 2272 2404 2263 2712 2844 2703 274 719 1163 1606 2048 2489 2929 3094 3368 3151 3283 3142 3533 3806 3589 3721 3580 3971 3705 4243 4026 4158 261 706 376 821 121 202...
result:
ok q=100000
Test #11:
score: 0
Accepted
time: 191ms
memory: 30516kb
input:
447 99681 2 1 1 3 1 4 5 1 6 1 1 7 1 8 1 9 1 10 1 11 1 12 1 13 14 1 15 1 1 16 1 17 18 1 19 1 20 1 1 21 22 1 23 1 24 1 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 33 1 1 34 35 1 1 36 1 37 38 1 1 39 40 1 1 41 42 1 43 1 1 44 45 1 46 1 1 47 48 1 49 1 1 50 1 51 52 1 53 1 54 1 1 55 56 1 1 57 58 1 1 59 1 60 61 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #12:
score: 0
Accepted
time: 1262ms
memory: 404272kb
input:
447 99681 2 1 1 3 4 1 1 5 1 6 1 7 8 1 1 9 1 10 1 11 12 1 13 1 14 1 1 15 16 1 1 17 18 1 1 19 20 1 21 1 22 1 23 1 1 24 1 25 26 1 1 27 1 28 1 29 1 30 31 1 32 1 33 1 34 1 1 35 1 36 37 1 38 1 1 39 40 1 1 41 42 1 1 43 44 1 45 1 1 46 47 1 1 48 49 1 1 50 51 1 1 52 1 53 54 1 1 55 1 56 57 1 58 1 59 1 60 1 1 6...
output:
40
result:
ok q=100000
Test #13:
score: 0
Accepted
time: 983ms
memory: 340892kb
input:
447 99681 1 2 3 1 4 1 5 1 1 6 1 7 1 8 9 1 10 1 11 1 1 12 1 13 14 1 15 1 16 1 17 1 1 18 1 19 1 20 21 1 22 1 1 23 1 24 1 25 26 1 27 1 28 1 1 29 30 1 1 31 1 32 33 1 34 1 35 1 1 36 37 1 1 38 39 1 40 1 41 1 1 42 43 1 1 44 1 45 46 1 47 1 1 48 49 1 1 50 51 1 1 52 53 1 54 1 1 55 56 1 57 1 1 58 59 1 60 1 61 ...
output:
398 108 249 157 88 317 402 212 169 230 434 45 204 363 182 183 247 366 207 78 170 195 127 238 92 164 252 86 260 423 408 286 351 134 5 81 310 315 237 210 75 236 374 153 223 196 251 262 177 17 93 61 427 331 72 218 245 64 139 71 84 233 377 63 27 35 132 376 355 284 120 96 149 258 440 171 98 200 11 301 58...
result:
ok q=100000
Test #14:
score: 0
Accepted
time: 765ms
memory: 248792kb
input:
447 99681 1 2 3 1 4 1 1 5 6 1 1 7 1 8 9 1 10 1 1 11 1 12 13 1 1 14 15 1 1 16 1 17 1 18 19 1 1 20 21 1 1 22 23 1 1 24 25 1 1 26 27 1 28 1 29 1 30 1 1 31 1 32 33 1 1 34 1 35 36 1 37 1 38 1 1 39 40 1 1 41 1 42 1 43 1 44 45 1 1 46 1 47 1 48 49 1 50 1 51 1 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 61 ...
output:
443 367 109 145 226 388 103 198 102 150 252 303 343 219 240 334 67 170 375 113 297 333 22 94 408 247 76 418 194 220 372 95 370 184 393 158 16 169 290 86 50 25 286 248 211 164 43 385 256 326 182 224 350 267 196 274 204 216 300 277 238 190 96 325 29 206 84 351 421 32 100 152 435 338 165 271 200 316 39...
result:
ok q=100000
Test #15:
score: 0
Accepted
time: 624ms
memory: 197908kb
input:
447 99681 1 2 3 1 4 1 1 5 1 6 7 1 1 8 9 1 10 1 11 1 1 12 1 13 1 14 15 1 1 16 1 17 18 1 1 19 1 20 21 1 22 1 23 1 1 24 25 1 1 26 27 1 28 1 1 29 30 1 1 31 32 1 33 1 34 1 35 1 1 36 1 37 1 38 39 1 40 1 41 1 42 1 43 1 44 1 1 45 46 1 1 47 48 1 49 1 50 1 1 51 52 1 53 1 1 54 1 55 56 1 57 1 58 1 59 1 60 1 1 6...
output:
198 283 145 391 442 389 312 217 315 308 327 245 136 82 193 390 285 68 98 380 419 242 397 395 338 174 104 8 115 440 42 58 319 336 192 306 154 95 383 233 52 178 173 91 219 38 369 366 363 275 352 73 50 183 421 146 180 86 205 438 379 215 40 387 125 256 102 413 377 208 118 279 359 250 17 316 356 53 26 37...
result:
ok q=100000
Test #16:
score: 0
Accepted
time: 447ms
memory: 131828kb
input:
447 99681 2 1 3 1 4 1 1 5 6 1 1 7 8 1 9 1 10 1 1 11 12 1 1 13 1 14 1 15 16 1 1 17 1 18 19 1 20 1 1 21 1 22 1 23 1 24 1 25 26 1 27 1 28 1 29 1 30 1 31 1 1 32 33 1 1 34 1 35 1 36 1 37 38 1 39 1 40 1 1 41 42 1 1 43 44 1 45 1 46 1 1 47 48 1 49 1 50 1 51 1 1 52 1 53 1 54 1 55 1 56 57 1 1 58 1 59 60 1 1 6...
output:
23 139 415 445 442 441 438 436 157 434 432 431 430 42 427 422 78 419 416 414 413 411 68 409 408 407 404 401 400 399 398 396 352 394 392 391 390 389 386 13 382 378 377 375 367 366 365 364 362 361 360 358 256 357 355 349 347 346 345 343 341 338 336 335 333 331 330 329 322 220 143 155 321 319 316 315 3...
result:
ok q=100000
Test #17:
score: 0
Accepted
time: 333ms
memory: 77396kb
input:
447 99681 2 1 3 1 1 4 5 1 1 6 7 1 8 1 1 9 10 1 11 1 12 1 13 1 14 1 1 15 1 16 1 17 18 1 1 19 1 20 1 21 22 1 1 23 24 1 25 1 26 1 1 27 1 28 29 1 30 1 1 31 1 32 1 33 34 1 35 1 36 1 1 37 1 38 1 39 1 40 1 41 1 42 43 1 44 1 1 45 1 46 47 1 48 1 1 49 50 1 51 1 1 52 1 53 54 1 1 55 56 1 57 1 1 58 59 1 60 1 1 6...
output:
446 444 441 440 439 437 435 433 431 238 430 425 422 418 416 414 413 412 410 405 402 88 101 400 399 397 396 395 394 393 392 391 388 387 386 385 384 382 381 379 378 377 375 373 371 370 365 364 363 362 361 360 359 358 357 356 354 353 352 351 348 347 345 342 341 271 339 337 332 331 329 326 325 324 323 3...
result:
ok q=100000
Test #18:
score: 0
Accepted
time: 209ms
memory: 32184kb
input:
447 99681 2 1 1 3 4 1 1 5 6 1 1 7 1 8 9 1 10 1 11 1 1 12 13 1 1 14 15 1 16 1 17 1 18 1 1 19 20 1 1 21 1 22 23 1 24 1 25 1 26 1 27 1 28 1 1 29 30 1 1 31 32 1 33 1 1 34 35 1 36 1 1 37 38 1 39 1 1 40 1 41 1 42 1 43 1 44 1 45 46 1 47 1 1 48 1 49 1 50 51 1 52 1 1 53 54 1 55 1 1 56 1 57 1 58 59 1 60 1 1 6...
output:
446 444 443 441 440 435 434 432 430 427 424 421 420 419 418 415 414 413 412 409 406 403 397 396 393 389 388 387 385 384 381 379 375 374 373 371 370 368 366 365 364 361 359 356 355 354 353 352 350 349 347 346 345 342 341 339 337 336 335 334 332 331 330 328 327 326 324 322 321 316 313 311 310 308 307 ...
result:
ok q=100000
Test #19:
score: 0
Accepted
time: 1324ms
memory: 406684kb
input:
447 99681 2 1 3 1 1 4 1 5 1 6 1 7 1 8 9 1 1 10 11 1 12 1 13 1 14 1 15 1 1 16 17 1 1 18 19 1 1 20 21 1 1 22 1 23 24 1 25 1 1 26 27 1 1 28 29 1 30 1 31 1 1 32 1 33 34 1 35 1 1 36 37 1 38 1 39 1 1 40 1 41 42 1 1 43 44 1 45 1 1 46 1 47 1 48 49 1 1 50 1 51 52 1 53 1 1 54 55 1 1 56 1 57 58 1 1 59 1 60 1 6...
output:
419
result:
ok q=100000
Test #20:
score: 0
Accepted
time: 1151ms
memory: 340732kb
input:
447 99681 1 2 1 3 4 1 5 1 6 1 1 7 8 1 1 9 1 10 1 11 1 12 13 1 1 14 1 15 16 1 17 1 18 1 1 19 20 1 21 1 1 22 23 1 24 1 1 25 1 26 1 27 28 1 29 1 30 1 31 1 1 32 33 1 34 1 1 35 1 36 37 1 38 1 39 1 40 1 41 1 42 1 1 43 44 1 45 1 46 1 47 1 1 48 49 1 1 50 1 51 1 52 53 1 54 1 1 55 1 56 57 1 1 58 1 59 1 60 1 6...
output:
127 82 210 402 363 43 174 180 69 399 219 205 188 434 371 292 39 102 353 440 422 40 55 46 62 151 90 235 444 278 149 81 287 387 212 388 148 56 395 326 139 424 350 384 161 253 201 340 59 367 154 290 256 360 107 125 8 325 75 47 134 431 318 5 53 250 324 3 336 13 352 227 31 267 197 436 144 158 332 226 276...
result:
ok q=100000
Test #21:
score: 0
Accepted
time: 810ms
memory: 251980kb
input:
447 99681 1 2 1 3 4 1 1 5 1 6 7 1 8 1 1 9 1 10 11 1 1 12 1 13 14 1 15 1 1 16 17 1 18 1 19 1 20 1 21 1 22 1 1 23 24 1 1 25 26 1 27 1 1 28 29 1 30 1 31 1 1 32 33 1 1 34 1 35 1 36 1 37 1 38 1 39 40 1 41 1 42 1 43 1 44 1 45 1 1 46 47 1 1 48 49 1 1 50 1 51 1 52 1 53 1 54 55 1 1 56 57 1 58 1 59 1 60 1 1 6...
output:
108 306 200 182 240 375 444 33 69 83 208 236 416 77 102 90 265 305 324 291 43 126 227 429 193 380 354 206 399 435 158 407 246 256 320 313 362 374 389 408 18 340 231 179 304 176 401 217 28 276 254 93 138 335 257 284 293 24 132 85 344 172 20 299 445 147 275 242 128 440 146 282 417 27 332 143 378 402 2...
result:
ok q=100000
Test #22:
score: 0
Accepted
time: 602ms
memory: 195336kb
input:
447 99681 2 1 3 1 1 4 5 1 1 6 7 1 1 8 9 1 1 10 11 1 1 12 13 1 14 1 15 1 16 1 17 1 18 1 1 19 1 20 1 21 22 1 23 1 24 1 25 1 1 26 1 27 1 28 29 1 1 30 31 1 32 1 1 33 1 34 35 1 36 1 37 1 1 38 1 39 40 1 41 1 42 1 1 43 44 1 45 1 46 1 1 47 48 1 1 49 1 50 51 1 1 52 53 1 1 54 55 1 56 1 1 57 58 1 59 1 60 1 61 ...
output:
0 0 375 144 376 35 221 81 241 164 401 220 418 239 305 264 345 66 303 308 440 118 351 194 360 27 425 278 140 585 753 246 309 366 94 379 435 6 174 390 417 410 336 89 127 235 72 162 311 358 274 361 199 269 7 65 191 42 124 102 399 321 408 93 228 487 22 467 48 320 317 198 252 339 407 120 222 70 209 69 9 ...
result:
ok q=100000
Test #23:
score: 0
Accepted
time: 442ms
memory: 133212kb
input:
447 99681 2 1 1 3 4 1 1 5 1 6 7 1 1 8 1 9 1 10 1 11 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 1 20 21 1 22 1 23 1 24 1 1 25 1 26 1 27 28 1 29 1 1 30 1 31 1 32 33 1 1 34 35 1 36 1 1 37 38 1 1 39 1 40 41 1 1 42 1 43 1 44 1 45 1 46 1 47 1 48 49 1 1 50 51 1 1 52 53 1 1 54 1 55 1 56 1 57 1 58 59 1 1 60 1 6...
output:
254 186 349 631 699 794 296 108 57 741 131 122 147 567 253 698 576 592 45 490 38 483 553 502 14 459 903 927 934 1142 305 750 1194 1011 1020 1036 1185 327 295 42 740 214 292 659 737 772 96 199 644 420 54 177 865 499 622 416 380 168 143 285 364 588 825 613 861 730 401 370 846 815 809 541 487 1290 1259...
result:
ok q=100000
Test #24:
score: 0
Accepted
time: 298ms
memory: 76120kb
input:
447 99681 2 1 3 1 1 4 5 1 6 1 7 1 1 8 9 1 1 10 1 11 12 1 1 13 1 14 1 15 1 16 17 1 18 1 19 1 20 1 1 21 1 22 23 1 1 24 1 25 1 26 27 1 1 28 1 29 1 30 31 1 1 32 33 1 34 1 35 1 1 36 37 1 38 1 39 1 1 40 41 1 42 1 1 43 1 44 1 45 46 1 47 1 1 48 49 1 50 1 51 1 1 52 1 53 54 1 1 55 56 1 57 1 1 58 1 59 1 60 1 6...
output:
0 0 0 0 342 787 1231 1674 2116 2557 162 607 1051 1494 202 647 1091 1534 1976 1936 2417 2377 2857 2817 2997 3296 3256 170 615 423 318 763 152 597 868 134 386 21 831 579 466 102 326 771 308 151 596 753 396 69 841 514 547 186 631 15 460 360 805 1249 395 840 1284 904 106 87 111 556 551 532 443 888 1332 ...
result:
ok q=100000
Test #25:
score: 0
Accepted
time: 228ms
memory: 32384kb
input:
447 99681 2 1 3 1 1 4 1 5 6 1 7 1 1 8 1 9 1 10 11 1 12 1 13 1 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 23 1 24 1 25 1 26 1 27 1 28 1 29 1 1 30 1 31 1 32 1 33 1 34 1 35 36 1 1 37 38 1 1 39 40 1 1 41 1 42 1 43 44 1 45 1 1 46 1 47 1 48 1 49 1 50 1 51 1 52 53 1 1 54 55 1 56 1 57 1 1 58 59 1 1 60 1 6...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #26:
score: 0
Accepted
time: 1648ms
memory: 401692kb
input:
448 100000 2 1 3 1 4 1 1 5 6 1 7 1 8 1 1 9 1 10 1 11 1 12 13 1 1 14 1 15 1 16 1 17 18 1 19 1 20 1 1 21 22 1 1 23 24 1 1 25 26 1 1 27 28 1 29 1 1 30 31 1 32 1 1 33 34 1 1 35 36 1 1 37 1 38 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 1 47 1 48 49 1 1 50 51 1 1 52 53 1 1 54 55 1 1 56 1 57 58 1 59 1 1 60 1 ...
output:
176
result:
ok q=100000
Test #27:
score: 0
Accepted
time: 1225ms
memory: 341728kb
input:
448 100000 2 1 3 1 1 4 1 5 1 6 1 7 8 1 9 1 1 10 1 11 1 12 1 13 14 1 1 15 1 16 1 17 1 18 1 19 1 20 21 1 22 1 1 23 24 1 25 1 26 1 27 1 28 1 29 1 1 30 31 1 32 1 1 33 34 1 35 1 1 36 1 37 1 38 1 39 1 40 41 1 42 1 43 1 1 44 45 1 46 1 47 1 48 1 49 1 50 1 51 1 1 52 53 1 1 54 1 55 1 56 1 57 1 58 59 1 60 1 61...
output:
242 78 207 4 168 196 431 400 247 300 23 147 364 434 84 11 323 203 123 423 309 230 26 150 387 52 416 107 445 21 134 328 120 202 304 287 396 244 226 289 232 228 338 280 430 50 306 276 365 271 357 185 343 285 146 188 408 171 55 286 359 312 82 411 6 299 177 195 439 152 208 80 192 13 88 166 117 354 10 34...
result:
ok q=100000
Test #28:
score: 0
Accepted
time: 952ms
memory: 253784kb
input:
448 100000 1 2 3 1 1 4 5 1 1 6 1 7 8 1 9 1 10 1 1 11 1 12 13 1 1 14 15 1 1 16 1 17 18 1 1 19 20 1 21 1 22 1 1 23 1 24 1 25 26 1 1 27 1 28 29 1 30 1 1 31 32 1 1 33 34 1 1 35 36 1 37 1 1 38 1 39 1 40 1 41 42 1 43 1 1 44 45 1 1 46 47 1 1 48 1 49 50 1 1 51 1 52 1 53 1 54 55 1 56 1 57 1 58 1 59 1 60 1 61...
output:
9 129 291 38 304 6 210 264 83 305 337 306 289 211 383 146 249 360 220 206 344 147 172 13 136 300 149 376 414 354 174 324 21 311 438 312 389 110 130 239 85 116 102 142 43 444 318 240 405 230 282 104 199 117 100 428 90 193 413 42 123 131 310 365 175 259 124 284 96 34 84 437 219 89 158 227 298 287 446 ...
result:
ok q=100000
Test #29:
score: 0
Accepted
time: 715ms
memory: 197512kb
input:
448 100000 1 2 3 1 1 4 1 5 1 6 7 1 8 1 9 1 1 10 11 1 1 12 1 13 14 1 1 15 1 16 17 1 1 18 1 19 20 1 21 1 22 1 1 23 24 1 25 1 1 26 27 1 1 28 1 29 30 1 31 1 32 1 1 33 34 1 1 35 36 1 37 1 38 1 1 39 40 1 41 1 1 42 43 1 44 1 1 45 1 46 47 1 48 1 49 1 1 50 1 51 1 52 1 53 54 1 55 1 56 1 57 1 1 58 1 59 60 1 61...
output:
383 829 413 859 1304 2 288 64 200 166 212 442 428 432 229 27 157 370 352 445 340 439 123 333 81 22 358 364 328 194 440 72 192 292 279 59 82 372 42 209 390 161 28 441 204 224 80 67 233 136 218 55 283 354 196 63 32 141 425 327 321 507 641 163 263 400 430 261 608 816 165 610 709 846 876 707 476 800 58 ...
result:
ok q=100000
Test #30:
score: 0
Accepted
time: 484ms
memory: 133328kb
input:
448 100000 2 1 3 1 4 1 5 1 6 1 7 1 1 8 1 9 1 10 11 1 1 12 1 13 1 14 15 1 16 1 1 17 18 1 1 19 1 20 1 21 22 1 1 23 1 24 25 1 1 26 1 27 1 28 29 1 1 30 31 1 32 1 1 33 34 1 35 1 1 36 37 1 38 1 1 39 1 40 1 41 42 1 43 1 1 44 45 1 46 1 1 47 48 1 1 49 50 1 51 1 52 1 1 53 54 1 55 1 1 56 57 1 1 58 1 59 1 60 61...
output:
0 246 692 1137 1581 2023 253 699 1144 328 774 134 580 213 659 1104 1025 1219 408 118 564 348 76 522 161 77 607 523 794 207 653 854 191 369 637 815 1082 1260 399 845 119 81 527 364 810 130 428 424 104 418 870 874 576 864 239 10 215 126 661 154 79 423 286 31 133 579 477 732 600 525 270 716 869 456 685...
result:
ok q=100000
Test #31:
score: 0
Accepted
time: 338ms
memory: 77280kb
input:
448 100000 2 1 1 3 1 4 5 1 6 1 1 7 8 1 9 1 10 1 1 11 1 12 13 1 1 14 15 1 16 1 1 17 1 18 1 19 1 20 21 1 1 22 23 1 1 24 1 25 26 1 27 1 28 1 29 1 30 1 1 31 1 32 33 1 34 1 1 35 1 36 37 1 38 1 1 39 1 40 41 1 42 1 1 43 44 1 1 45 46 1 47 1 1 48 1 49 1 50 51 1 1 52 1 53 1 54 55 1 56 1 57 1 58 1 59 1 1 60 61...
output:
0 0 0 0 0 0 332 218 777 663 1222 1108 1666 1552 316 761 1206 1650 50 495 252 233 426 678 697 872 237 682 1127 1123 1142 1317 940 1571 1567 1586 1761 1384 2014 2010 2029 2204 12 427 39 180 63 873 484 625 457 508 1318 929 1070 902 953 1762 1373 1514 238 683 73 518 963 1128 1407 1572 1346 1397 1850 201...
result:
ok q=100000
Test #32:
score: 0
Accepted
time: 235ms
memory: 30556kb
input:
448 100000 2 1 3 1 4 1 5 1 1 6 7 1 1 8 9 1 10 1 11 1 12 1 1 13 1 14 1 15 1 16 1 17 18 1 19 1 20 1 21 1 1 22 1 23 1 24 1 25 1 26 27 1 1 28 1 29 1 30 1 31 32 1 33 1 34 1 35 1 1 36 1 37 1 38 39 1 1 40 1 41 42 1 43 1 1 44 45 1 46 1 1 47 1 48 1 49 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 1 58 1 59 60 1 61...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #33:
score: 0
Accepted
time: 1499ms
memory: 403244kb
input:
448 100000 2 1 3 1 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 12 1 13 1 14 1 1 15 16 1 17 1 1 18 1 19 20 1 21 1 22 1 1 23 24 1 1 25 26 1 1 27 28 1 29 1 1 30 31 1 1 33 34 1 1 35 1 36 1 37 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 1 48 1 49 50 1 51 1 52 1 53 1 1 54 1 55 1 56 1 57 58 1 1 59 60 1 61 1 63...
output:
390
result:
ok q=100000
Test #34:
score: 0
Accepted
time: 1188ms
memory: 344700kb
input:
448 100000 1 2 3 1 1 4 1 5 1 6 7 1 8 1 9 1 1 10 11 1 12 1 1 13 1 14 15 1 16 1 1 17 18 1 19 1 20 1 1 21 22 1 1 23 24 1 25 1 26 1 27 1 1 28 1 29 1 30 31 1 32 1 33 1 1 34 1 35 1 36 1 37 38 1 1 39 1 40 1 41 1 42 43 1 44 1 1 45 46 1 1 47 1 48 49 1 50 1 1 51 1 52 1 53 54 1 55 1 56 1 57 1 58 1 1 59 1 60 61...
output:
16 228 164 206 127 334 197 348 357 347 431 248 27 262 415 328 338 207 413 47 311 365 39 218 103 418 3 180 321 277 337 183 280 400 231 442 115 26 106 92 426 390 355 409 19 221 367 239 205 362 187 159 54 75 170 126 443 300 330 11 246 172 260 285 163 245 439 391 112 350 160 230 78 128 304 223 148 102 2...
result:
ok q=100000
Test #35:
score: 0
Accepted
time: 914ms
memory: 251500kb
input:
448 100000 1 2 1 3 4 1 1 5 6 1 7 1 1 8 9 1 1 10 11 1 1 12 13 1 1 14 15 1 1 16 1 17 1 18 1 19 1 20 1 21 22 1 23 1 24 1 1 25 26 1 27 1 1 28 29 1 1 30 31 1 1 32 33 1 1 34 1 35 1 36 37 1 1 38 1 39 1 40 1 41 1 42 1 43 44 1 1 45 46 1 47 1 1 48 49 1 50 1 1 51 1 52 1 53 54 1 55 1 1 56 1 57 58 1 1 59 60 1 61...
output:
445 442 441 110 116 77 310 402 363 180 427 342 412 429 86 307 5 352 313 319 285 14 198 196 297 70 69 299 248 52 375 244 351 361 76 421 370 347 62 434 415 147 443 13 221 215 384 356 411 153 290 409 367 322 97 343 227 149 436 47 16 226 157 259 286 396 23 19 247 341 321 183 109 432 357 6 395 369 222 10...
result:
ok q=100000
Test #36:
score: 0
Accepted
time: 729ms
memory: 197468kb
input:
448 100000 2 1 3 1 4 1 1 5 1 6 1 7 8 1 9 1 10 1 1 11 1 12 1 13 1 14 1 15 16 1 17 1 1 18 1 19 20 1 1 21 22 1 1 23 24 1 1 25 1 26 27 1 1 28 1 29 30 1 1 31 32 1 33 1 34 1 1 35 1 36 37 1 1 38 1 39 40 1 1 41 1 42 43 1 44 1 45 1 46 1 47 1 48 1 49 1 1 50 1 51 1 52 1 53 54 1 55 1 56 1 1 57 58 1 59 1 1 60 1 ...
output:
443 441 440 363 325 134 438 437 436 148 434 432 217 321 429 112 412 332 185 428 304 426 425 424 35 421 420 419 418 417 422 344 372 411 407 404 282 349 259 366 81 402 401 400 399 395 383 16 20 274 205 33 356 396 393 397 391 390 389 387 386 385 384 117 377 370 365 364 352 115 392 229 371 359 284 358 3...
result:
ok q=100000
Test #37:
score: 0
Accepted
time: 523ms
memory: 135200kb
input:
448 100000 1 2 3 1 1 4 1 5 6 1 7 1 8 1 9 1 1 10 11 1 12 1 13 1 1 14 1 15 16 1 1 17 1 18 1 19 1 20 21 1 1 22 1 23 24 1 25 1 1 26 1 27 1 28 1 29 30 1 31 1 32 1 1 33 34 1 1 35 1 36 1 37 1 38 39 1 1 40 1 41 42 1 43 1 44 1 1 45 1 46 47 1 48 1 49 1 50 1 1 51 52 1 53 1 54 1 55 1 56 1 1 57 1 58 1 59 60 1 1 ...
output:
447 446 362 399 445 442 112 441 438 436 435 331 371 433 430 429 428 427 43 423 432 294 26 45 421 420 419 417 416 123 62 203 414 412 410 409 407 406 405 403 402 400 397 396 395 393 392 390 389 387 386 383 382 381 377 374 372 368 365 363 358 356 198 380 80 351 49 350 349 348 346 404 361 434 344 66 341...
result:
ok q=100000
Test #38:
score: 0
Accepted
time: 347ms
memory: 77912kb
input:
448 100000 1 2 1 3 1 4 5 1 6 1 1 7 8 1 9 1 10 1 11 1 12 1 1 13 1 14 15 1 16 1 1 17 1 18 19 1 1 20 1 21 22 1 1 23 24 1 1 25 26 1 1 27 28 1 29 1 1 30 1 31 32 1 33 1 1 34 35 1 1 36 1 37 38 1 1 39 1 40 1 41 42 1 43 1 44 1 45 1 46 1 47 1 1 48 49 1 1 50 51 1 52 1 1 53 54 1 1 55 1 56 57 1 58 1 1 59 1 60 61...
output:
447 446 445 440 439 438 436 435 434 431 427 425 420 419 417 416 414 411 410 407 406 405 403 401 30 400 371 344 397 396 322 395 392 391 389 388 387 382 381 378 81 375 372 370 368 365 364 362 361 359 357 356 353 351 168 196 349 348 347 346 345 340 437 3 338 337 336 335 334 330 328 326 118 323 319 317 ...
result:
ok q=100000
Test #39:
score: 0
Accepted
time: 204ms
memory: 32228kb
input:
448 100000 2 1 1 3 1 4 1 5 1 6 7 1 1 8 1 9 1 10 11 1 1 12 1 13 14 1 15 1 16 1 1 17 1 18 19 1 20 1 21 1 1 22 1 23 24 1 1 25 26 1 1 27 28 1 29 1 30 1 31 1 32 1 33 1 1 34 1 35 36 1 37 1 1 38 1 39 1 40 41 1 1 42 43 1 44 1 45 1 1 46 1 47 1 48 49 1 50 1 51 1 1 52 53 1 54 1 55 1 1 56 57 1 58 1 59 1 1 60 1 ...
output:
446 444 443 442 441 439 437 435 434 432 429 428 426 424 423 421 417 416 415 411 410 409 408 407 405 404 403 402 399 396 392 387 386 382 381 379 378 376 375 372 371 363 361 356 354 353 351 350 349 345 343 341 338 337 336 334 332 330 328 327 326 325 324 320 319 318 317 316 310 309 307 306 304 303 301 ...
result:
ok q=100000
Test #40:
score: 0
Accepted
time: 1583ms
memory: 402972kb
input:
448 100000 2 1 1 3 4 1 5 1 1 6 1 7 1 8 9 1 10 1 11 1 1 12 1 13 1 14 1 15 1 16 1 17 18 1 19 1 20 1 1 21 22 1 23 1 24 1 25 1 26 1 1 27 28 1 1 29 1 30 31 1 1 32 1 33 34 1 35 1 1 36 1 37 38 1 1 39 40 1 1 41 1 42 1 43 1 44 45 1 46 1 1 47 1 48 49 1 1 50 51 1 52 1 53 1 54 1 55 1 1 56 57 1 1 58 59 1 1 60 1 ...
output:
173
result:
ok q=100000
Test #41:
score: 0
Accepted
time: 1203ms
memory: 342628kb
input:
448 100000 2 1 3 1 4 1 1 5 1 6 7 1 8 1 9 1 1 10 11 1 1 12 1 13 1 14 1 15 1 16 17 1 1 18 1 19 20 1 21 1 22 1 23 1 24 1 25 1 1 26 27 1 28 1 1 29 30 1 1 31 1 32 33 1 34 1 1 35 36 1 1 37 1 38 39 1 40 1 1 41 42 1 1 43 1 44 45 1 46 1 47 1 48 1 1 49 50 1 1 51 1 52 53 1 1 54 1 55 56 1 1 57 58 1 1 59 60 1 61...
output:
83 50 61 363 438 424 375 414 26 408 237 353 25 396 66 264 379 311 339 313 349 43 74 334 446 172 269 11 359 8 352 76 164 24 7 176 426 235 174 165 246 100 58 392 328 427 440 154 211 280 289 378 159 113 300 201 116 67 212 290 362 153 131 393 180 308 421 218 191 28 248 385 93 428 355 413 137 441 171 225...
result:
ok q=100000
Test #42:
score: 0
Accepted
time: 825ms
memory: 251820kb
input:
448 100000 1 2 1 3 1 4 5 1 6 1 7 1 1 8 1 9 10 1 11 1 1 12 1 13 1 14 15 1 1 16 1 17 18 1 1 19 1 20 21 1 22 1 23 1 24 1 1 25 1 26 27 1 1 28 1 29 30 1 31 1 32 1 33 1 1 34 1 35 1 36 1 37 38 1 39 1 1 40 41 1 1 42 1 43 1 44 1 45 46 1 1 47 48 1 49 1 1 50 1 51 52 1 1 53 1 54 55 1 56 1 57 1 58 1 1 59 1 60 1 ...
output:
0 32 442 318 336 248 357 323 208 315 300 374 116 288 332 102 447 82 359 118 141 350 286 190 325 25 330 176 27 235 231 210 436 224 101 431 106 240 293 304 440 358 270 273 207 211 52 329 126 21 154 417 433 444 38 180 368 276 168 314 362 233 312 408 127 189 422 150 221 285 428 223 227 379 121 353 62 38...
result:
ok q=100000
Test #43:
score: 0
Accepted
time: 645ms
memory: 198608kb
input:
448 100000 2 1 3 1 4 1 1 5 1 6 7 1 1 8 1 9 10 1 1 11 12 1 1 13 1 14 15 1 16 1 17 1 18 1 1 19 1 20 1 21 22 1 23 1 1 24 25 1 26 1 1 27 28 1 1 29 1 30 31 1 1 32 33 1 1 34 35 1 36 1 1 37 38 1 1 39 1 40 1 41 1 42 43 1 1 44 45 1 46 1 1 47 1 48 49 1 1 50 1 51 52 1 53 1 1 54 55 1 1 56 1 57 58 1 1 59 60 1 61...
output:
0 0 0 0 0 0 0 183 629 1073 374 820 314 351 760 239 258 14 274 460 138 584 704 685 797 84 101 431 396 328 842 102 548 184 377 2 372 439 87 333 426 343 308 779 533 148 169 594 197 643 615 51 354 497 398 844 357 205 261 115 59 133 117 196 75 154 124 1 104 237 303 403 446 440 217 547 125 212 803 885 651...
result:
ok q=100000
Test #44:
score: 0
Accepted
time: 437ms
memory: 133824kb
input:
448 100000 2 1 1 3 4 1 1 5 6 1 7 1 8 1 1 9 10 1 11 1 1 12 1 13 1 14 15 1 1 16 1 17 18 1 1 19 20 1 1 21 22 1 23 1 1 24 1 25 1 26 1 27 1 28 29 1 30 1 31 1 32 1 33 1 1 34 35 1 1 36 37 1 1 38 1 39 40 1 41 1 42 1 1 43 44 1 45 1 46 1 1 47 48 1 49 1 50 1 51 1 52 1 1 53 54 1 55 1 56 1 1 57 58 1 1 59 60 1 61...
output:
109 555 1000 1443 258 239 104 117 685 550 563 704 1129 995 1008 1148 114 184 630 560 10 325 168 456 771 614 901 224 427 345 90 178 187 122 447 221 190 351 381 636 356 802 797 389 362 124 20 342 788 1 247 604 680 465 805 253 302 76 511 553 292 655 681 721 755 851 858 483 620 455 814 819 662 26 166 69...
result:
ok q=100000
Test #45:
score: 0
Accepted
time: 331ms
memory: 76804kb
input:
448 100000 1 2 1 3 4 1 1 5 1 6 7 1 8 1 1 9 1 10 11 1 12 1 1 13 1 14 15 1 16 1 17 1 18 1 19 1 1 20 1 21 1 22 23 1 1 24 1 25 26 1 27 1 1 28 29 1 1 30 31 1 1 32 1 33 1 34 1 35 1 36 1 37 1 38 39 1 40 1 1 41 1 42 43 1 1 44 1 45 1 46 47 1 1 48 1 49 1 50 1 51 52 1 1 53 1 54 55 1 1 56 1 57 1 58 1 59 1 60 61...
output:
0 223 667 1112 1554 370 816 1261 1703 2146 1997 2587 2439 3027 2878 3467 140 583 197 174 96 617 418 864 640 539 1309 1062 1085 984 1028 1751 1504 425 871 1316 1758 1527 1426 1470 278 724 1169 1611 2054 2201 2194 1947 1970 1869 1913 2496 2642 2635 2389 2412 2311 436 882 1327 1769 2212 2653 2355 3093 ...
result:
ok q=100000
Test #46:
score: 0
Accepted
time: 227ms
memory: 31984kb
input:
448 100000 2 1 3 1 1 4 1 5 6 1 7 1 8 1 1 9 1 10 11 1 1 12 1 13 1 14 1 15 1 16 1 17 18 1 1 19 1 20 21 1 1 22 23 1 1 24 1 25 26 1 1 27 28 1 1 29 1 30 31 1 32 1 33 1 1 34 35 1 36 1 37 1 1 38 39 1 40 1 41 1 1 42 43 1 1 44 1 45 1 46 47 1 1 48 49 1 50 1 51 1 1 52 53 1 54 1 1 55 56 1 1 57 58 1 59 1 1 60 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #47:
score: 0
Accepted
time: 134ms
memory: 40288kb
input:
100000 100000 5722 1 35633 1 76503 1 2 8454 2 93428 3 91414 4 55025 21132 5 6 22400 6 80941 7 22043 7 29361 7 73158 78568 7 8 24159 8 26175 27612 9 39375 9 5454 10 24262 10 40601 10 11 8620 59525 11 11 79781 11 92891 64034 12 33728 14 14 59378 14 79826 560 16 16 31445 35262 16 17911 17 28509 17 9364...
output:
11158
result:
ok q=100000
Test #48:
score: 0
Accepted
time: 111ms
memory: 39004kb
input:
100000 100000 32763 1 1 41318 52251 1 66464 2 83572 2 67186 5 7 64990 34545 8 8 96178 8628 9 10 8181 94794 15 16 33467 16 34451 85594 16 17 20413 31799 17 17 41753 18 61787 71853 18 19 5788 19 49136 97968 19 34661 20 20 61751 95244 20 20211 21 31082 21 22 96882 53538 23 53831 24 81268 24 25 52202 61...
output:
48490 48489 39777 30538 94777 53584 1066 81498 51559 29500 30274 17100 12728 21767 98186 73435 44592 5804 75074 75073 58929 51181 71805 18081 32506 28902 76920 80148 91248 64528 61664 26857 15971 73831 79305 26010 98826 14893 1084 97482 59494 75938 55011 68687 47212 540 19634 82244 67980 96778 66114...
result:
ok q=100000
Test #49:
score: 0
Accepted
time: 106ms
memory: 38780kb
input:
100000 100000 98 1 1 39536 2 7197 2 36925 64304 2 3 90981 4 55694 4 58594 6 14112 6 61223 49657 7 49961 8 9 63064 84290 9 9616 10 10 26834 10 81424 11 28592 66665 11 11 67518 12 65671 12 77007 13 83518 88724 13 14 22525 28934 14 38904 15 18454 16 16 34371 33103 17 63576 17 46939 18 67514 18 18 72374...
output:
84279 63805 15691 31330 254 16067 70506 72114 87198 32562 29566 59932 31397 39178 8018 90151 89237 99011 92871 42932 54198 51863 10169 38578 75894 83146 53182 94693 28220 63739 22718 54549 43326 20986 76953 95801 94648 96987 44545 84144 10520 12160 59735 65469 81889 60315 52076 92744 78279 15718 261...
result:
ok q=100000
Test #50:
score: 0
Accepted
time: 116ms
memory: 38476kb
input:
100000 100000 1 30554 51310 1 1 71883 94585 1 2 40250 59351 2 2 60517 72989 3 4 3248 14035 4 4 90751 5 786 6 10125 87221 6 22862 7 7 57323 67940 7 40455 8 8 66854 9 34854 9 87440 43694 10 10 57462 82982 10 94968 10 47934 11 11 71829 24007 12 44565 12 48286 12 70260 12 12 70368 98761 12 20547 14 7549...
output:
71478 71477 40431 49551 49550 49549 26532 58649 52035 76839 35164 14556 11901 50261 3269 50164 34109 87811 31355 56894 76203 16879 63000 48037 31354 85164 10949 78771 98697 35452 76160 66650 26073 3678 97329 63518 57130 33367 71439 3268 36518 3271 25349 35454 92807 21390 55848 55847 19560 66060 6834...
result:
ok q=100000
Test #51:
score: 0
Accepted
time: 106ms
memory: 38136kb
input:
100000 100000 26140 1 46196 2 2 54845 78912 3 3 90871 4 12358 5 33609 5 43410 5 78393 47818 6 7 48862 13216 8 8 36636 8 40979 52931 8 8 80000 94821 8 52306 10 14072 12 36807 12 66342 12 344 13 13 4469 13 14570 13 52573 15 29037 15 38532 86576 15 16 9718 43023 16 16 86523 19 16448 20 15703 20 62471 8...
output:
0 0 0 0 33676 0 0 0 81127 64094 38372 38371 25083 25082 25081 19895 3296 70591 38370 56000 69480 12954 12956 76367 9074 9128 9127 9126 12953 61668 1281 6529 52444 22544 62238 62237 13771 81470 81468 48282 34967 81469 90103 90102 14145 81918 67816 59096 40004 35692 88273 11407 8056 845 23814 67311 12...
result:
ok q=100000
Test #52:
score: 0
Accepted
time: 89ms
memory: 38100kb
input:
100000 100000 2005 1 1 15170 57799 2 4 38977 4 57240 42542 5 5 53318 5 75678 6 88650 65147 7 8 53626 8 70633 22352 10 11 49862 12 14548 12 50661 12 69416 13 22675 13 57792 3230 14 61629 16 16 94304 19 4752 11292 19 19 23963 47970 19 3280 20 20 13431 37640 20 20 43437 22 59910 69629 22 94875 22 23 52...
output:
0 0 63812 63811 0 0 0 0 0 0 0 0 0 0 0 0 0 64070 0 0 0 0 0 0 0 0 0 0 0 0 0 17931 17930 0 0 0 0 0 0 0 0 0 0 25349 25298 22976 0 63870 46890 79011 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 57471 54550 49655 74503 23473 0 0 0 0 79932 79931 55883 0 0 0 0 0 0 0 0 95579 95578 94320 0 0 93452 72970 0 0 0 0 0 0 ...
result:
ok q=100000
Test #53:
score: 0
Accepted
time: 67ms
memory: 38128kb
input:
100000 100000 40394 1 75982 2 3 18844 73366 3 88698 3 4020 6 6 73638 7 22013 65853 7 8 75952 8 91846 8 92431 35947 9 25852 10 60988 10 84698 10 49696 11 60792 11 94447 12 29797 13 14 32289 14 45866 85823 14 15 5953 19579 15 9976 16 16 26641 17 70399 80811 17 18 57277 19 24826 19 72978 15405 20 64474...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #54:
score: 0
Accepted
time: 116ms
memory: 40400kb
input:
100000 100000 1 46719 1 85926 2 31507 3 10325 25701 3 4 20660 4 24390 5 28826 5 32895 5 65707 5 85849 26769 6 35848 6 8 31592 9 6175 10 10273 10 49762 8543 11 12 1257 12 49533 67310 12 12 85402 4042 13 13 91901 14 36759 95374 14 40235 16 16 95131 17 47185 49412 17 86267 17 30733 18 19 36525 99630 20...
output:
45927
result:
ok q=100000
Test #55:
score: 0
Accepted
time: 114ms
memory: 40420kb
input:
100000 100000 1 14816 1 36843 1 67254 69974 1 3 22460 4 94861 51245 5 5 53683 54692 6 6 91387 6 91712 8 56288 8 88631 9 4475 23107 9 9 37340 18545 10 10 32507 10 37510 86500 10 57406 11 11 96238 486 12 12 44026 51175 13 14 92685 14 94886 14 99844 66818 15 58293 16 16 92531 17 32186 36963 18 18 53409...
output:
35268 67766 38280 38279 12361 29784 63672 44174 31176 86872 93174 90167 57760 72285 33621 12758 27140 42594 95767 11872 74423 94666 92262 59949 75520 42260 50159 29707 83984 16331 95692 58433 79150 48130 29139 42384 38289 88446 81327 21773 11115 73079 62889 97156 13425 53236 47550 87144 37048 40295 ...
result:
ok q=100000
Test #56:
score: 0
Accepted
time: 107ms
memory: 40360kb
input:
100000 100000 1 92961 32241 2 2 81221 4608 3 16927 3 18769 3 3 43374 22317 4 55044 4 18810 5 6 72739 61007 7 9 25577 9 27864 34366 9 10 16913 30734 10 40980 10 60805 10 74697 10 82279 10 10021 11 23696 12 36468 12 51197 12 86124 12 12 89628 14 6535 14 21742 14 36158 57841 14 15 81216 15 84873 16 457...
output:
73693 3466 84146 2308 40253 27078 23949 99712 99350 87702 4616 46373 38940 74472 74988 93440 84115 7420 20392 7418 97340 69277 78783 84145 39024 45638 1853 3661 7832 76361 53486 24739 24738 14319 7831 7827 68718 23519 48953 63896 50189 42739 29785 86770 71804 23657 50286 56795 63064 28288 96408 4596...
result:
ok q=100000
Test #57:
score: 0
Accepted
time: 147ms
memory: 40520kb
input:
100000 100000 1 27333 1 84324 96084 1 9114 2 85952 2 3 5372 4 6733 9091 4 58622 4 4 86657 14441 5 55881 5 77265 5 5 80838 6 348 8 52617 8 61683 11583 9 9 73540 93581 9 94661 9 9 98721 46654 10 10 52226 12 55380 12 79729 13 40841 13 58505 80468 13 57058 14 14 59095 23508 15 68757 15 6286 17 17 39373 ...
output:
76664 75098 57979 82953 69483 65411 36319 5030 23234 37117 15614 5363 28628 25342 52816 65137 65135 32060 23417 49436 533 34732 35193 14160 30915 79665 57353 81774 6550 79222 28767 23897 52780 11445 18909 79629 79628 66918 4845 32224 8785 40499 18488 76898 62554 71781 34639 48739 18485 40354 44795 9...
result:
ok q=100000
Test #58:
score: 0
Accepted
time: 113ms
memory: 40388kb
input:
100000 100000 60818 1 1 61357 77477 1 3 45025 59533 3 46950 4 78991 4 97104 4 36194 5 6 64485 1740 7 5623 8 23553 8 16292 9 62566 9 9 98158 10 23566 10 47129 84382 10 10 89508 11 12522 54918 11 82691 14 89591 14 15 22620 22939 16 56415 16 16 83923 18 29619 18 83502 19 24669 79130 19 43646 20 21 6966...
output:
4485 9947 22458 10067 10066 31695 66813 57833 9234 59912 59910 35738 90297 56241 31081 14072 50128 13394 28484 86472 66712 49539 91958 64055 93479 91660 67470 36536 45881 31973 68997 77120 38501 28822 82335 59927 40733 68023 94650 5829 80814 80420 98071 94649 98689 96914 61262 76643 22996 57472 2676...
result:
ok q=100000
Test #59:
score: 0
Accepted
time: 119ms
memory: 40300kb
input:
100000 100000 34616 1 58002 1 1 70045 10303 2 2 39631 40632 2 10056 3 41853 3 70173 3 4 92959 5 47483 16468 6 50684 6 67732 6 84535 7 47014 8 59046 9 10 65208 10 78362 11266 11 24545 11 12 21449 66415 12 92002 12 13 19643 13 23316 96267 14 91298 15 17801 16 49544 16 69757 16 4694 17 17 24548 221 18 ...
output:
77332 70244 94834 82655 5693 14572 56107 95951 68709 68707 99013 76501 82261 82260 30352 18930 43805 8545 10860 64903 77654 75572 85724 71819 82334 53603 80016 34588 439 36623 15053 95330 62495 44163 79474 72096 52274 76062 54960 73683 36189 43138 16789 43415 55012 1756 46370 46369 39043 75640 23508...
result:
ok q=100000
Test #60:
score: 0
Accepted
time: 129ms
memory: 40396kb
input:
100000 100000 1 14279 25034 1 1 25644 1 33907 55554 1 32635 2 48898 2 67742 2 30821 3 62159 3 62878 4 4 99567 5427 5 81073 5 40389 6 68943 6 86783 6 7 7357 8 43901 8 49165 66447 8 15193 10 10 27651 52896 10 11 21927 31071 11 65058 11 1885 12 12 86604 13 34951 13 57211 73415 13 76672 13 31146 14 4934...
output:
90122 19249 11969 47027 9038 56437 56436 99322 42387 89830 55305 99738 6556 93971 57927 58449 58447 3262 1852 58544 97460 94629 53997 13641 71349 71348 71347 25771 85406 15115 86178 84025 27466 27463 1583 96025 63169 29438 33809 77081 12215 25060 56983 89343 89342 31856 45830 32346 75407 37276 55435...
result:
ok q=100000
Test #61:
score: 0
Accepted
time: 127ms
memory: 40296kb
input:
100000 100000 36686 1 2 28317 3 43331 58975 3 9005 5 5 38587 85424 5 87253 5 91242 6 7 12636 7 28747 43112 7 56525 7 95056 7 8 67866 8 96414 15486 9 9 17569 9 27913 9 45216 57385 9 12037 10 10 26847 68194 10 10 69558 91082 10 1181 11 29864 11 11 51315 74564 11 11 99360 50347 12 12 70424 80616 12 810...
output:
result:
ok q=100000
Test #62:
score: 0
Accepted
time: 113ms
memory: 40308kb
input:
100000 100000 19575 1 26203 1 72508 1 1 97963 14667 2 16976 2 3 6175 3 67390 3 85817 3 95274 61098 4 5 63076 48837 6 6 85456 8 11139 8053 9 9 14304 9 42080 78302 9 87001 9 95714 9 10 11640 10 38250 11 68261 33284 12 34067 13 37576 13 13 83578 15 23823 35578 16 57809 16 17 35284 43161 17 17 47477 516...
output:
result:
ok q=100000
Test #63:
score: 0
Accepted
time: 107ms
memory: 40436kb
input:
100000 100000 36059 1 46485 1 23653 2 73424 2 2 74494 51828 3 4 33328 53661 4 34793 5 6 51871 55444 6 6 65656 8 16246 8 34477 10425 9 62445 9 21534 10 10 30313 60761 10 96061 10 7597 11 11 15469 63367 12 40382 13 14 75126 15 56288 15 84929 53927 16 64468 16 17 53139 18 5845 76176 18 19 24677 19 5891...
output:
result:
ok q=100000
Test #64:
score: 0
Accepted
time: 111ms
memory: 40368kb
input:
100000 100000 20177 2 2 98955 3 46743 3 46866 62628 3 12631 4 75181 4 5 54593 27546 6 6 31901 6 83336 6 90688 7 32220 7 63366 8 61776 37721 9 9 48206 9 70008 96585 9 10 62990 98079 10 11 11607 21944 11 11 80964 13 9208 13 49235 13 69968 13 85800 38176 14 57272 14 15 3765 16 67576 17 40546 17 44435 1...
output:
result:
ok q=100000
Test #65:
score: 0
Accepted
time: 122ms
memory: 40432kb
input:
100000 100000 1 33218 2 26924 4 22063 4 72727 83189 4 5 26165 50928 5 6 12110 17480 7 39161 7 7 76692 20436 8 36025 8 9 52297 9 58874 67940 9 10 17168 10 40179 10665 11 11 26766 11 26798 28558 11 41443 11 91932 11 11 96520 12 38384 89050 13 14 44040 14 60933 63286 14 14 91796 38298 15 83369 15 20977...
output:
result:
ok q=100000
Test #66:
score: 0
Accepted
time: 132ms
memory: 40260kb
input:
100000 100000 97038 1 2 12394 73478 2 27345 3 3 52828 3 94198 17649 4 34700 4 4 48092 90308 4 4 92571 5 73178 5 96066 1197 6 79796 6 6 95080 7 6897 7 96564 8 57604 8 70048 29738 10 10 42975 10 99064 11 20156 11 25952 51206 11 11 97949 38714 12 92965 12 10950 13 15 6617 8272 15 17383 15 37580 15 5035...
output:
result:
ok q=100000
Test #67:
score: 0
Accepted
time: 120ms
memory: 40312kb
input:
100000 100000 1 43054 1 66061 45045 4 81759 5 15827 6 6 40801 78430 6 6 83704 3488 9 32237 9 10 8261 10 37635 98555 10 82566 11 30294 12 68894 12 13 32989 92708 14 94972 14 15 41948 16 28327 20490 17 52712 17 18 23230 18 77251 9533 19 66382 19 20 10583 23214 22 32369 22 24 32167 75443 24 26 9052 278...
output:
result:
ok q=100000
Test #68:
score: 0
Accepted
time: 84ms
memory: 44808kb
input:
99970 100000 2 1 1 3 1 4 1 5 1 6 1 7 8 1 9 1 1 10 11 1 1 12 13 1 1 14 15 1 1 16 17 1 1 18 19 1 1 20 21 1 22 1 23 1 1 24 25 1 1 26 1 27 1 28 29 1 1 30 1 31 1 32 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 1 42 1 43 1 44 1 45 46 1 47 1 48 1 1 49 50 1 1 51 1 52 1 53 54 1 1 55 56 1 57 1 1 58 59 1 1 60 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #69:
score: 0
Accepted
time: 78ms
memory: 43448kb
input:
99970 100000 2 1 1 3 1 4 1 5 1 6 7 1 1 8 9 1 1 10 11 1 12 1 13 1 1 14 15 1 1 16 1 17 1 18 19 1 1 20 1 21 1 22 1 23 24 1 25 1 26 1 27 1 28 1 29 1 30 1 1 31 1 32 1 33 34 1 1 35 36 1 37 1 38 1 39 1 1 40 41 1 42 1 1 43 1 44 1 45 46 1 1 47 48 1 49 1 1 50 51 1 52 1 53 1 1 54 55 1 1 56 1 57 1 58 1 59 60 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #70:
score: 0
Accepted
time: 72ms
memory: 43788kb
input:
99970 100000 1 2 3 1 1 4 1 5 1 6 7 1 1 8 9 1 1 10 11 1 1 12 13 1 14 1 15 1 16 1 1 17 18 1 19 1 1 20 1 21 22 1 23 1 1 24 25 1 1 26 1 27 28 1 29 1 30 1 1 31 32 1 1 33 1 34 1 35 36 1 1 37 38 1 39 1 40 1 1 41 42 1 43 1 1 44 45 1 1 46 47 1 48 1 49 1 1 50 51 1 1 52 53 1 1 54 55 1 1 56 57 1 58 1 59 1 60 1 ...
output:
99969 0 99968 0 99967 0 99966 0 99965 0 99964 0 99963 0 99962 0 99961 0 99960 0 99959 0 99958 0 99957 0 99956 0 99955 0 99954 0 99953 0 99952 0 99951 0 99950 0 99949 0 99948 0 99947 0 99946 0 99945 0 99944 0 99943 0 99942 0 99941 0 99940 0 99939 0 99938 0 99937 0 99936 0 99935 0 99934 0 99933 0 9993...
result:
ok q=100000
Test #71:
score: 0
Accepted
time: 78ms
memory: 43812kb
input:
99970 100000 2 1 3 1 4 1 1 5 1 6 7 1 8 1 1 9 1 10 11 1 1 12 13 1 14 1 15 1 16 1 17 1 1 18 1 19 20 1 21 1 1 22 23 1 1 24 1 25 26 1 27 1 28 1 29 1 30 1 1 31 1 32 1 33 34 1 1 35 36 1 1 37 38 1 1 39 40 1 1 41 42 1 1 43 1 44 1 45 46 1 47 1 1 48 49 1 50 1 51 1 52 1 1 53 54 1 55 1 56 1 57 1 58 1 59 1 1 60 ...
output:
0 99969 99968 99967 99966 0 99965 0 0 0 99964 99963 99962 0 0 99961 0 99960 99959 99958 99957 0 99956 0 99955 0 99954 0 0 99953 0 99952 0 0 99951 0 0 99950 99949 99948 0 0 99947 0 0 99946 0 99945 0 0 0 99944 99943 0 0 0 99942 0 0 99941 0 0 0 99940 0 0 0 99939 0 99938 99937 0 0 0 99936 0 99935 0 0 0 ...
result:
ok q=100000
Test #72:
score: 0
Accepted
time: 72ms
memory: 43344kb
input:
99970 100000 2 1 1 3 5 1 7 1 9 1 1 11 13 1 15 1 1 17 1 19 1 21 1 23 1 25 27 1 1 29 31 1 1 33 1 35 37 1 1 39 1 41 1 43 45 1 47 1 1 49 51 1 1 53 55 1 57 1 59 1 1 61 63 1 65 1 1 67 69 1 71 1 73 1 75 1 77 1 79 1 81 1 1 83 85 1 1 87 1 89 91 1 1 93 1 95 1 97 99 1 1 101 1 103 1 105 107 1 109 1 111 1 1 113 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #73:
score: 0
Accepted
time: 65ms
memory: 44456kb
input:
99970 100000 2 1 3 1 5 1 7 1 1 9 1 11 1 13 15 1 1 17 19 1 21 1 23 1 1 25 27 1 29 1 1 31 33 1 1 35 37 1 1 39 1 41 1 43 45 1 47 1 1 49 1 51 53 1 1 55 1 57 59 1 61 1 63 1 65 1 67 1 69 1 1 71 73 1 1 75 1 77 79 1 1 81 1 83 85 1 1 87 89 1 91 1 1 93 1 95 97 1 99 1 1 101 103 1 1 105 1 107 1 109 1 111 113 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #74:
score: 0
Accepted
time: 80ms
memory: 44136kb
input:
99970 100000 2 1 3 1 5 1 7 1 9 1 11 1 1 13 1 15 1 17 19 1 1 21 1 23 1 25 1 27 1 29 1 31 1 33 1 35 37 1 39 1 1 41 1 43 1 45 47 1 1 49 51 1 1 53 55 1 57 1 59 1 1 61 63 1 1 65 1 67 1 69 1 71 73 1 75 1 77 1 1 79 1 81 1 83 1 85 1 87 89 1 91 1 93 1 1 95 1 97 1 99 101 1 103 1 1 105 1 107 1 109 111 1 1 113 ...
output:
1 49985 49984 49983 99969 0 99968 49982 49981 49980 99967 0 49979 0 49978 49977 99966 0 99965 0 49976 49975 99964 0 99963 49974 99962 49973 99961 49972 49971 49970 49969 49968 99960 49967 49966 49965 49964 0 49963 49962 99959 49961 99958 0 99957 49960 99956 0 49959 49958 49957 0 49956 0 99955 0 9995...
result:
ok q=100000
Test #75:
score: 0
Accepted
time: 81ms
memory: 45036kb
input:
99970 100000 2 1 3 1 5 1 7 1 1 9 11 1 13 1 1 15 1 17 1 19 21 1 1 23 25 1 27 1 1 29 1 31 1 33 1 35 37 1 1 39 41 1 43 1 1 45 1 47 1 49 51 1 53 1 1 55 1 57 59 1 1 61 63 1 65 1 1 67 69 1 1 71 73 1 75 1 77 1 79 1 81 1 83 1 85 1 87 1 89 1 91 1 93 1 95 1 1 97 99 1 101 1 103 1 1 105 1 107 1 109 1 111 113 1 ...
output:
0 0 0 1 99969 99968 99967 99966 99965 99964 0 49985 0 0 99963 99962 49984 49983 0 0 0 0 0 0 49982 49981 49980 49979 49978 49977 49976 99961 49975 49974 49973 49972 99960 99959 99958 99957 99956 0 99955 0 0 0 0 99954 0 49971 49970 49969 49968 99953 49967 49966 99952 99951 99950 49965 49964 49963 4996...
result:
ok q=100000
Test #76:
score: 0
Accepted
time: 57ms
memory: 44328kb
input:
99970 100000 1 2 3 1 4 1 1 7 1 10 1 13 16 1 19 1 1 22 25 1 1 28 1 31 34 1 1 37 40 1 1 43 1 46 1 49 52 1 1 55 1 58 61 1 64 1 1 67 70 1 73 1 76 1 1 79 82 1 1 85 88 1 1 91 1 94 97 1 100 1 1 103 106 1 109 1 112 1 115 1 118 1 1 121 124 1 1 127 130 1 1 133 1 136 139 1 1 142 1 145 1 148 1 151 1 154 1 157 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #77:
score: 0
Accepted
time: 60ms
memory: 44448kb
input:
99970 100000 3 1 1 4 1 7 1 10 1 13 16 1 1 19 1 22 1 25 1 28 1 31 34 1 1 37 40 1 43 1 46 1 1 49 1 52 1 55 58 1 1 61 64 1 67 1 70 1 1 73 1 76 79 1 1 82 85 1 1 88 91 1 94 1 1 97 1 100 1 103 106 1 109 1 1 112 115 1 1 118 121 1 1 124 127 1 130 1 1 133 136 1 139 1 142 1 1 145 1 148 151 1 1 154 157 1 1 160...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #78:
score: 0
Accepted
time: 72ms
memory: 45016kb
input:
99970 100000 3 1 1 4 1 7 1 10 1 13 16 1 19 1 22 1 25 1 1 28 1 31 1 34 1 37 1 40 1 43 46 1 49 1 1 52 55 1 1 58 1 61 1 64 67 1 70 1 1 73 76 1 1 79 1 82 1 85 88 1 1 91 94 1 97 1 100 1 1 103 1 106 1 109 1 112 1 115 118 1 121 1 1 124 127 1 130 1 1 133 1 136 139 1 142 1 145 1 148 1 1 151 154 1 1 157 1 160...
output:
33324 0 1 33323 33325 0 66647 66646 66645 33322 66644 33321 66643 66642 66641 0 33320 33319 33318 33317 33316 66640 33315 66639 33314 33313 66638 33312 66637 33311 66636 33310 33309 33308 33307 33306 33305 66635 66634 33304 66633 66632 33303 33302 33301 33300 66631 66630 33299 33298 33297 33296 9996...
result:
ok q=100000
Test #79:
score: 0
Accepted
time: 95ms
memory: 44888kb
input:
99970 100000 1 2 3 1 4 1 7 1 1 10 1 13 16 1 1 19 22 1 25 1 1 28 1 31 1 34 1 37 40 1 1 43 1 46 1 49 1 52 55 1 1 58 61 1 64 1 67 1 70 1 1 73 76 1 79 1 82 1 85 1 88 1 91 1 94 1 1 97 1 100 103 1 106 1 109 1 1 112 115 1 1 118 1 121 124 1 127 1 130 1 1 133 136 1 1 139 1 142 1 145 1 148 151 1 154 1 1 157 1...
output:
33325 33324 33323 33322 0 0 0 0 0 0 33321 33320 0 0 0 0 0 0 0 1 33319 33318 33317 33316 33315 33314 33313 66647 2 66646 66645 66644 33312 33311 33310 33309 33308 33307 33306 33305 33304 33303 66643 66642 66641 33302 33301 33300 33299 33298 33297 33296 33295 33294 33293 33292 33291 33290 33289 33288 ...
result:
ok q=100000
Test #80:
score: 0
Accepted
time: 67ms
memory: 44260kb
input:
99970 100000 1 2 1 4 5 1 9 1 13 1 1 17 21 1 1 25 1 29 33 1 1 37 41 1 45 1 1 49 1 53 1 57 1 61 65 1 1 69 1 73 1 77 81 1 85 1 89 1 1 93 97 1 101 1 105 1 109 1 113 1 1 117 121 1 1 125 1 129 133 1 137 1 141 1 1 145 149 1 1 153 157 1 161 1 165 1 1 169 1 173 177 1 181 1 185 1 189 1 193 1 1 197 1 201 1 205...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #81:
score: 0
Accepted
time: 58ms
memory: 44208kb
input:
99970 100000 1 2 1 4 5 1 9 1 13 1 17 1 21 1 1 25 1 29 1 33 37 1 1 41 1 45 1 49 53 1 1 57 1 61 1 65 1 69 73 1 77 1 81 1 1 85 89 1 93 1 97 1 101 1 105 1 1 109 1 113 1 117 121 1 1 125 129 1 133 1 137 1 141 1 145 1 1 149 1 153 1 157 1 161 1 165 169 1 173 1 177 1 181 1 185 1 1 189 1 193 1 197 201 1 1 205...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #82:
score: 0
Accepted
time: 77ms
memory: 44676kb
input:
99970 100000 4 1 1 5 9 1 1 13 17 1 1 21 25 1 29 1 33 1 37 1 41 1 1 45 1 49 53 1 57 1 61 1 1 65 69 1 1 73 77 1 1 81 85 1 89 1 1 93 1 97 1 101 105 1 109 1 113 1 1 117 121 1 1 125 129 1 133 1 1 137 141 1 145 1 149 1 153 1 1 157 161 1 165 1 1 169 1 173 1 177 181 1 185 1 189 1 193 1 1 197 201 1 205 1 209...
output:
49987 24993 24992 1 24995 0 24994 0 24991 24990 99969 0 24989 24988 24987 0 24986 24985 24984 24983 24982 74978 99968 0 74977 49986 74976 0 49985 49984 49983 49982 99967 0 24981 24980 24979 24978 24977 24976 24975 74975 74974 74973 74972 0 74971 24974 24973 24972 24971 24970 49981 49980 74970 24969 ...
result:
ok q=100000
Test #83:
score: 0
Accepted
time: 81ms
memory: 44792kb
input:
99970 100000 4 1 5 1 1 9 13 1 17 1 21 1 25 1 29 1 33 1 37 1 41 1 45 1 1 49 53 1 1 57 61 1 65 1 69 1 1 73 1 77 1 81 85 1 1 89 93 1 97 1 1 101 1 105 1 109 1 113 117 1 121 1 1 125 1 129 1 133 1 137 1 141 1 145 1 149 153 1 157 1 1 161 165 1 169 1 1 173 1 177 181 1 1 185 189 1 1 193 1 197 1 201 205 1 1 2...
output:
1 24993 49987 49986 49985 99969 0 0 24992 24991 0 24994 74978 24990 24989 24988 49984 49983 49982 49981 49980 74977 74976 24987 24986 24985 24984 24983 24982 24981 24980 24979 49979 49978 49977 49976 49975 49974 49973 24978 49972 49971 24977 24976 24975 24974 24973 49970 49969 49968 49967 49966 4996...
result:
ok q=100000
Test #84:
score: 0
Accepted
time: 74ms
memory: 44404kb
input:
99970 100000 1 2 4 1 6 1 11 1 1 16 21 1 26 1 31 1 36 1 1 41 46 1 1 51 56 1 61 1 66 1 1 71 1 76 81 1 86 1 1 91 96 1 101 1 106 1 111 1 1 116 121 1 126 1 1 131 136 1 1 141 1 146 1 151 1 156 1 161 1 166 171 1 176 1 181 1 186 1 1 191 1 196 1 201 206 1 211 1 216 1 221 1 226 1 1 231 1 236 241 1 246 1 251 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #85:
score: 0
Accepted
time: 58ms
memory: 44212kb
input:
99970 100000 1 2 3 1 6 1 1 11 1 16 21 1 1 26 1 31 1 36 1 41 46 1 1 51 56 1 61 1 1 66 1 71 76 1 1 81 86 1 91 1 1 96 1 101 1 106 111 1 1 116 121 1 126 1 131 1 136 1 1 141 1 146 1 151 1 156 1 161 166 1 171 1 176 1 1 181 186 1 1 191 1 196 201 1 206 1 1 211 216 1 221 1 226 1 231 1 236 1 241 1 246 1 251 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #86:
score: 0
Accepted
time: 73ms
memory: 44808kb
input:
99970 100000 3 1 4 1 5 1 1 6 11 1 1 16 1 21 1 26 1 31 36 1 1 41 46 1 1 51 1 56 1 61 66 1 1 71 1 76 81 1 1 86 91 1 96 1 1 101 106 1 111 1 1 116 121 1 126 1 131 1 136 1 141 1 146 1 151 1 1 156 1 161 166 1 1 171 1 176 181 1 186 1 191 1 1 196 201 1 206 1 1 211 216 1 221 1 226 1 231 1 236 1 1 241 246 1 2...
output:
2 1 59983 59982 79977 19996 19995 39990 19994 19993 19992 19991 19990 3 59984 59981 79976 19989 19988 19987 19986 19985 19997 19984 19983 19982 19981 19980 19979 39989 39988 39987 19978 19977 99970 39986 99969 19976 19975 79975 19974 19973 19972 59980 99968 59979 39985 39984 39983 59978 59977 19971 ...
result:
ok q=100000
Test #87:
score: 0
Accepted
time: 71ms
memory: 44720kb
input:
99970 100000 1 3 5 1 6 1 1 11 1 16 1 21 1 26 31 1 1 36 41 1 1 46 51 1 56 1 1 61 1 66 1 71 76 1 81 1 1 86 1 91 1 96 1 101 1 106 111 1 116 1 1 121 1 126 1 131 136 1 1 141 1 146 151 1 1 156 161 1 1 166 171 1 1 176 181 1 1 186 1 191 196 1 1 201 1 206 1 211 216 1 1 221 1 226 1 231 236 1 241 1 246 1 1 251...
output:
1 59983 0 39989 39988 39987 39986 39985 0 0 0 0 0 39984 19995 19994 19993 19992 19991 19990 2 19989 19988 19987 19986 19985 19984 39983 19996 39982 39981 39980 39979 39978 39977 39976 0 39975 39974 39973 39972 19983 19982 39971 39970 39969 39968 39967 19981 19980 19979 19978 19977 19976 19975 19974 ...
result:
ok q=100000
Test #88:
score: 0
Accepted
time: 68ms
memory: 44188kb
input:
99970 100000 1 3 1 4 1 5 1 6 7 1 1 13 1 19 25 1 31 1 1 37 1 43 49 1 55 1 1 61 1 67 1 73 79 1 85 1 91 1 1 97 103 1 109 1 115 1 121 1 1 127 133 1 139 1 145 1 1 151 157 1 1 163 169 1 1 175 181 1 1 187 1 193 1 199 1 205 1 211 1 217 223 1 229 1 1 235 1 241 1 247 253 1 259 1 1 265 271 1 277 1 1 283 1 289 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #89:
score: 0
Accepted
time: 66ms
memory: 44196kb
input:
99970 100000 3 1 1 4 5 1 6 1 7 1 13 1 19 1 1 25 1 31 37 1 43 1 1 49 1 55 1 61 1 67 73 1 1 79 1 85 1 91 1 97 1 103 109 1 115 1 121 1 127 1 133 1 139 1 1 145 151 1 1 157 1 163 1 169 1 175 1 181 187 1 1 193 1 199 1 205 1 211 1 217 223 1 229 1 235 1 1 241 247 1 1 253 1 259 1 265 1 271 1 277 1 283 289 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #90:
score: 0
Accepted
time: 79ms
memory: 44904kb
input:
99970 100000 1 2 1 3 1 4 7 1 13 1 1 19 25 1 31 1 37 1 1 43 1 49 55 1 61 1 1 67 73 1 1 79 85 1 1 91 97 1 1 103 109 1 115 1 121 1 1 127 1 133 139 1 1 145 1 151 1 157 1 163 169 1 1 175 181 1 187 1 1 193 1 199 205 1 1 211 1 217 1 223 229 1 1 235 1 241 1 247 253 1 1 259 1 265 271 1 1 277 1 283 289 1 1 29...
output:
33327 49989 1 33326 2 16665 49990 3 66652 0 66651 66650 49988 49987 49986 33325 33324 33323 33322 33321 33320 16664 16663 16662 16661 33319 33318 16660 16659 49985 49984 66649 66648 0 99972 33317 33316 33315 99971 83312 83311 0 66647 66646 66645 66644 49983 33314 33313 49982 49981 16658 16657 16656 ...
result:
ok q=100000
Test #91:
score: 0
Accepted
time: 85ms
memory: 44704kb
input:
99970 100000 3 1 6 1 1 7 13 1 19 1 25 1 1 31 1 37 1 43 1 49 55 1 61 1 67 1 1 73 1 79 1 85 1 91 97 1 103 1 109 1 1 115 121 1 127 1 133 1 139 1 145 1 151 1 157 1 163 1 169 1 175 1 181 1 187 1 193 1 199 1 205 1 1 211 217 1 223 1 229 1 1 235 1 241 247 1 1 253 259 1 265 1 271 1 277 1 1 283 1 289 295 1 1 ...
output:
33327 1 33326 33325 16663 16662 16661 16660 16659 16658 2 16657 16656 16655 16654 16664 33328 33329 49990 49989 16653 16652 16651 16650 16649 16648 16647 16646 16645 16644 16643 16642 16641 16640 16639 16638 16637 16636 16635 16634 16666 33324 16665 49988 66652 66651 66650 49991 16633 16632 16631 16...
result:
ok q=100000
Test #92:
score: 0
Accepted
time: 72ms
memory: 43868kb
input:
99970 100000 3 1 1 4 5 1 1 8 15 1 22 1 1 29 1 36 1 43 50 1 1 57 1 64 71 1 78 1 1 85 1 92 99 1 1 106 1 113 1 120 1 127 1 134 1 141 1 148 1 155 162 1 169 1 176 1 1 183 190 1 197 1 1 204 1 211 218 1 225 1 232 1 239 1 1 246 1 253 260 1 1 267 274 1 1 281 288 1 295 1 302 1 309 1 316 1 1 323 330 1 1 337 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #93:
score: 0
Accepted
time: 79ms
memory: 43876kb
input:
99970 100000 1 3 1 5 6 1 7 1 1 8 15 1 22 1 29 1 36 1 1 43 50 1 57 1 64 1 1 71 1 78 1 85 92 1 1 99 106 1 113 1 1 120 127 1 134 1 141 1 148 1 155 1 1 162 169 1 176 1 1 183 190 1 197 1 204 1 211 1 1 218 1 225 232 1 239 1 246 1 1 253 1 260 267 1 274 1 1 281 1 288 1 295 1 302 1 309 316 1 323 1 1 330 337 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #94:
score: 0
Accepted
time: 78ms
memory: 44872kb
input:
99970 100000 2 1 1 3 1 5 1 7 8 1 15 1 1 22 1 29 36 1 43 1 50 1 57 1 1 64 1 71 78 1 85 1 1 92 1 99 106 1 113 1 120 1 127 1 134 1 141 1 1 148 1 155 162 1 169 1 1 176 1 183 190 1 197 1 204 1 1 211 218 1 225 1 1 232 239 1 1 246 253 1 1 260 267 1 274 1 1 281 288 1 1 295 302 1 1 309 1 316 1 323 330 1 337 ...
output:
4 3 14288 2 1 14285 14284 14286 42852 14287 28569 14283 14282 28571 14281 14280 14279 14278 14277 14276 14275 14274 14273 14272 14271 14270 28570 28568 28567 28566 28565 28564 28563 28562 28561 28560 28559 28558 28557 42853 28556 28555 28554 28553 28552 28551 57134 14269 14268 42854 28550 28549 1426...
result:
ok q=100000
Test #95:
score: 0
Accepted
time: 75ms
memory: 44772kb
input:
99970 100000 2 1 3 1 4 1 1 6 7 1 8 1 1 15 1 22 29 1 1 36 1 43 50 1 1 57 1 64 71 1 78 1 1 85 1 92 1 99 106 1 113 1 1 120 1 127 1 134 141 1 1 148 155 1 1 162 1 169 176 1 1 183 1 190 197 1 1 204 1 211 218 1 1 225 1 232 239 1 246 1 253 1 1 260 267 1 1 274 281 1 1 288 1 295 1 302 1 309 1 316 323 1 330 1 ...
output:
0 0 4 14288 5 2 3 28570 42851 42850 42853 57134 42849 42848 42847 42846 42845 42844 85694 85693 85692 85691 85690 85689 85688 14287 14286 14285 14284 14283 14282 14281 42843 42842 42841 42840 42839 42838 42837 42836 42835 42834 42833 42832 42831 42830 42829 42828 42827 42826 42825 42824 42823 42822 ...
result:
ok q=100000
Test #96:
score: 0
Accepted
time: 71ms
memory: 44220kb
input:
99970 100000 2 1 3 1 4 1 1 5 1 6 9 1 17 1 25 1 33 1 1 41 49 1 57 1 65 1 73 1 1 81 89 1 1 97 1 105 113 1 1 121 1 129 137 1 145 1 153 1 1 161 1 169 1 177 1 185 1 193 1 201 1 209 217 1 1 225 1 233 1 241 1 249 1 257 1 265 1 273 281 1 1 289 297 1 1 305 313 1 321 1 1 329 337 1 1 345 1 353 361 1 369 1 1 37...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #97:
score: 0
Accepted
time: 71ms
memory: 44220kb
input:
99970 100000 1 2 1 4 1 5 1 6 1 9 1 17 25 1 33 1 41 1 1 49 57 1 1 65 1 73 81 1 89 1 97 1 1 105 113 1 1 121 129 1 137 1 145 1 1 153 161 1 169 1 1 177 185 1 193 1 1 201 209 1 217 1 1 225 1 233 1 241 249 1 257 1 1 265 273 1 281 1 289 1 297 1 305 1 1 313 321 1 329 1 337 1 345 1 353 1 1 361 369 1 377 1 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #98:
score: 0
Accepted
time: 80ms
memory: 44716kb
input:
99970 100000 4 1 5 1 1 8 1 9 17 1 25 1 1 33 1 41 1 49 57 1 65 1 1 73 1 81 1 89 97 1 105 1 1 113 1 121 1 129 137 1 145 1 1 153 1 161 169 1 177 1 185 1 1 193 1 201 1 209 217 1 1 225 1 233 241 1 1 249 1 257 265 1 1 273 1 281 289 1 297 1 305 1 1 313 1 321 329 1 337 1 345 1 1 353 1 361 1 369 377 1 1 385 ...
output:
1 25000 12501 24999 12499 12498 12497 12496 2 12502 12504 37498 12503 25001 62490 49995 12495 12494 12493 12492 12491 12490 12489 12488 12487 12486 3 12485 12484 12483 12482 12481 12480 12479 12478 12477 12500 24998 24997 12476 12475 12474 12473 12472 12471 12470 25002 12469 12468 12467 12466 12465 ...
result:
ok q=100000
Test #99:
score: 0
Accepted
time: 94ms
memory: 44912kb
input:
99970 100000 6 1 9 1 1 17 1 25 1 33 41 1 1 49 1 57 1 65 73 1 1 81 89 1 97 1 1 105 113 1 1 121 129 1 137 1 1 145 1 153 1 161 169 1 1 177 1 185 1 193 201 1 209 1 217 1 1 225 1 233 1 241 249 1 257 1 265 1 1 273 281 1 1 289 1 297 1 305 313 1 321 1 1 329 337 1 345 1 353 1 361 1 369 1 1 377 1 385 393 1 1 ...
output:
0 0 0 12500 37496 12502 62488 62487 24999 1 24998 24997 24996 24995 12501 25000 49993 12497 12496 74985 74984 62489 74983 74982 74981 74980 74979 12503 37497 62490 12499 12495 12494 12493 12492 12491 12490 12489 12488 12487 12486 12485 12484 12483 12482 12481 12480 12479 49992 49991 49990 49989 4998...
result:
ok q=100000
Test #100:
score: 0
Accepted
time: 327ms
memory: 23168kb
input:
10000 100000 62 1 1 552 818 1 1 1204 1993 1 1 4007 1 4095 5262 1 1 5367 5784 1 1 6036 6091 1 1 6559 8108 1 1 8154 1 9191 9482 1 41 2 2 294 1572 2 1852 2 2 1895 3322 2 4360 2 4905 2 2 5027 5934 2 6198 2 6504 2 2 6870 8364 2 722 3 812 3 1347 3 1856 3 1990 3 2008 3 2578 3 3 3019 3 3248 3 3495 3 3616 3 ...
output:
97510
result:
ok q=100000
Test #101:
score: 0
Accepted
time: 303ms
memory: 23060kb
input:
10000 100000 1 278 1 1411 1906 1 2107 1 2178 1 1 2299 2526 1 1 2856 1 3613 3796 1 1 4128 1 4196 1 4250 1 4631 5135 1 5224 1 1 5279 6206 1 1 6985 1 7310 1 7357 7722 1 7815 1 1 8282 9362 1 9571 1 1 9782 1 9999 874 2 2 1055 1187 2 2010 2 2 2173 2250 2 2511 2 2699 2 2756 2 2876 2 2 3802 4047 2 4937 2 2 ...
output:
97091 78479 69165 90014 95012 93793 74276 6992 97762 95697 49617 24868 19168 90703 44913 92578 91945 30593 85696 66428 71183 99659 58312 33747 741 93220 78076 35862 35858 57230 35632 35628 27497 88547 98291 20949 95783 69851 18489 66364 78594 34738 2752 72454 72453 34858 81903 4634 80827 99094 39392...
result:
ok q=100000
Test #102:
score: 0
Accepted
time: 275ms
memory: 23056kb
input:
10000 100000 1 257 1 1150 1 2495 4714 1 5052 1 5128 1 5130 1 1 5235 1 6273 1 7279 7296 1 1 7899 8429 1 8895 1 9133 1 1 9402 2 378 2 434 1060 2 2991 2 5009 2 5316 2 2 5857 2 5984 2 6490 2 6494 6963 2 2 7560 2 7816 7996 2 8202 2 2 8218 2 9608 893 3 3 1127 3 1318 1863 3 3136 3 3 3927 4162 3 4273 3 3 49...
output:
0 75918 80498 88539 96890 91311 77553 67108 86483 38766 692 691 33186 75164 24695 24694 94844 29970 64708 90474 90473 90470 90468 90894 70392 70391 65178 89342 94871 71034 76126 99880 45832 42956 42952 98076 40961 94247 52582 89518 40267 40260 40259 40257 7622 65333 65331 78276 74415 63327 77945 873...
result:
ok q=100000
Test #103:
score: 0
Accepted
time: 214ms
memory: 22720kb
input:
10000 100000 1 32 366 1 1164 1 1 1881 2317 1 2931 1 1 2932 3853 1 4011 1 1 4090 1 5006 5656 1 5696 1 1 6055 6674 1 7367 1 7599 1 8265 1 2 1468 2 1486 1670 2 2375 2 2 2729 3116 2 2 3202 2 3560 2 4047 2 4643 2 4645 4794 2 4958 2 5887 2 5947 2 2 6549 2 6992 2 7179 7436 2 2 7513 2 8130 2 8703 2 9686 514...
output:
0 35204 98628 98569 69871 69870 97713 96005 5415 83807 97812 97811 97810 55283 88554 88553 87960 73529 73528 73525 73522 73521 33543 32958 25192 6666 99148 99147 95934 95931 51513 70921 70920 85885 91153 28379 28378 28377 28375 93492 93490 68959 57623 92007 94853 79457 79455 33722 33720 6372 5007 60...
result:
ok q=100000
Test #104:
score: 0
Accepted
time: 170ms
memory: 21680kb
input:
10000 100000 1 1173 1 2045 1 2146 1 2314 2389 1 1 2586 1 2796 1 3622 3650 1 1 3692 1 3985 4433 1 4520 1 5493 1 1 5514 6563 1 7220 1 1 7472 1 8043 1 8385 8565 1 9622 1 1 9735 2 97 2 131 167 2 1663 2 3416 2 2 4187 2 4386 2 4447 2 5022 5025 2 5179 2 2 5885 2 6919 8335 2 8400 2 2 8671 8807 2 9147 2 3 83...
output:
0 0 0 0 76229 76228 42787 42785 42784 97864 78044 97296 45842 68840 24099 67560 67559 90766 43858 17670 75860 92279 36346 36345 36342 36341 36340 98320 47657 70879 63226 63225 63223 63220 98507 70071 56303 76564 76563 76562 13539 9286 9285 9284 9282 97335 93454 93452 93451 93450 93449 43889 71964 71...
result:
ok q=100000
Test #105:
score: 0
Accepted
time: 130ms
memory: 21700kb
input:
10000 100000 1 380 1 873 1 1618 1838 1 1 2767 3506 1 1 4453 4602 1 4754 1 4880 1 1 5778 1 5811 1 6230 7868 1 1 7911 8126 1 1 8233 9049 1 9356 1 2 10 2 537 658 2 2 1129 1461 2 2 2035 2237 2 3097 2 3513 2 2 3524 2 3931 2 4956 5072 2 2 5204 2 5302 2 5454 2 5562 5607 2 5774 2 2 5909 6017 2 2 6193 6622 2...
output:
0 97705 97512 67374 49145 75549 38811 64431 87698 73364 73362 73357 73356 73355 68526 68525 68524 87697 73361 73100 87699 68521 99496 90007 88561 70262 69326 60468 32734 6692 99897 99474 99383 93801 75691 75689 75688 75687 75686 99895 94659 94658 83758 75712 52455 74085 63650 63223 55218 12781 78173...
result:
ok q=100000
Test #106:
score: 0
Accepted
time: 75ms
memory: 20748kb
input:
10000 100000 1 223 924 1 1010 1 1 2164 1 2599 3130 1 3294 1 1 3555 1 3759 4080 1 1 4841 4948 1 1 5358 1 6539 7363 1 1 7747 9377 1 1 9393 1 9596 1 9941 376 2 2 623 878 2 1665 2 1759 2 2 1941 2135 2 3573 2 3685 2 3843 2 2 4021 5156 2 2 6157 2 6758 6934 2 2 7220 2 7354 7620 2 2 7815 2 8287 2 8564 8772 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #107:
score: 0
Accepted
time: 336ms
memory: 23060kb
input:
10000 100000 1 246 483 1 1 766 1 1389 1 1977 1 2314 2563 1 2637 1 2826 1 1 4125 4414 1 4737 1 1 5172 1 5460 1 5727 1 6441 1 6611 1 6654 1 7016 7208 1 1 7265 1 7459 7666 1 1 7680 1 7784 8265 1 8518 1 9031 1 2 1115 2 1194 2 1496 1533 2 2 1578 1655 2 2455 2 2 2537 2785 2 2 3661 2 5953 2 6095 2 6250 728...
output:
87475
result:
ok q=100000
Test #108:
score: 0
Accepted
time: 269ms
memory: 23208kb
input:
10000 100000 1 4 1 262 480 1 1661 1 1942 1 3141 1 3242 1 1 4520 5039 1 5322 1 5617 1 5702 1 6596 1 7549 1 8091 1 1 8150 1 8300 8880 1 8976 1 9057 1 1 9615 2 361 986 2 2 1260 1571 2 1831 2 2903 2 2 3659 2 4398 4775 2 4780 2 2 5425 6353 2 2 6520 2 7157 2 7742 2 8973 9025 2 50 3 3 677 3 816 924 3 1742 ...
output:
83223 94724 94723 84720 26313 86442 89097 50453 99841 69610 57953 91732 97477 54666 80567 95432 47882 34404 88353 43132 99886 84438 98027 56894 74304 75058 51095 96404 84912 33841 77111 77106 44327 41715 74015 92622 48130 77950 99155 88578 88349 88348 77954 93922 85787 24703 98611 23650 89133 27378 ...
result:
ok q=100000
Test #109:
score: 0
Accepted
time: 253ms
memory: 23148kb
input:
10000 100000 637 1 1879 1 1 2512 1 3578 3828 1 4117 1 1 4420 4468 1 4698 1 1 6029 6048 1 6553 1 6615 1 1 6970 7457 1 7626 1 1 7647 1 9559 9862 1 2 362 2 2514 2764 2 2 2982 3679 2 6566 2 2 8237 8441 2 8654 2 8754 2 8796 2 2 8905 9184 2 3 1285 3 1795 2932 3 3 3025 3 3149 3 3537 5987 3 3 6361 3 6710 3 ...
output:
99312 98593 62686 60226 98045 78372 91864 48081 85550 66771 59027 84976 84971 79593 55866 54185 21475 29618 90592 84297 72830 95169 89943 99557 99556 53456 87175 60530 87038 87036 69828 37547 54191 61829 30278 27956 46760 82490 75148 25565 2356 76389 5726 1423 82830 94511 76559 76558 24118 24117 782...
result:
ok q=100000
Test #110:
score: 0
Accepted
time: 226ms
memory: 23168kb
input:
10000 100000 6 1 1 399 891 1 1 1247 1269 1 1 1839 1 4072 4089 1 1 4245 1 4901 5339 1 1 7182 7459 1 8149 1 8208 1 1 8881 8937 1 1 9259 2 997 2 1065 2 2100 2 2796 2 3802 2 4857 2 5518 2 5539 5952 2 2 5973 7487 2 2 8574 2 9917 61 3 3 70 591 3 3 594 3 1502 3 1606 3 1616 3106 3 3 3523 3 3742 3 4162 4550 ...
output:
98767 95071 45943 27473 89288 89287 72840 72838 41622 60704 62946 62943 62450 85920 73155 73151 73146 46026 88052 85281 79452 11968 98795 97429 27355 27351 95950 93811 93749 90163 72314 63247 71445 36103 96502 91655 81424 56607 98175 24754 24753 24746 24744 96063 87939 98676 93795 92490 85923 97744 ...
result:
ok q=100000
Test #111:
score: 0
Accepted
time: 193ms
memory: 23200kb
input:
10000 100000 1 362 793 1 1 2340 1 2929 1 3619 1 3663 1 3789 6135 1 6331 1 6700 1 1 6901 7815 1 8192 1 1 8615 8676 1 1 8849 1 9273 1 9310 323 2 512 2 2 847 2 967 2 970 1006 2 1716 2 2102 2 2 2739 3298 2 2 3444 2 3472 3889 2 2 4569 2 5985 6892 2 7135 2 7675 2 7854 2 7871 2 8179 2 8656 2 8719 2 2 8799 ...
output:
80798 55875 35469 24762 23873 12524 97017 96719 97108 99881 99530 99428 98340 69508 93388 87738 84765 72523 67203 86337 86336 86333 84671 82774 60540 60539 52014 52013 129 125 73620 9217 9215 9214 94042 94039 46192 11726 70506 49075 39145 15310 1185 93347 84026 68349 44582 44573 44571 44570 67079 67...
result:
ok q=100000
Test #112:
score: 0
Accepted
time: 156ms
memory: 23104kb
input:
10000 100000 1 53 1 1122 1949 1 1965 1 1 2760 1 6345 6354 1 1 6764 1 7825 1 8453 8734 1 9046 1 1 9160 9875 1 2 29 167 2 754 2 2 867 1007 2 1040 2 2 1421 2752 2 2 3046 2 3444 2 3627 2 4830 2 5453 2 6492 2 8157 2 8480 2 9226 2 9460 9525 2 369 3 572 3 3 648 1053 3 3 1356 3 2369 3153 3 3155 3 3 5471 604...
output:
53489 53487 53484 98240 71709 49774 46620 46462 60704 13404 26676 44227 44226 44225 44223 44218 21355 86686 68270 43741 38658 54827 27789 21429 54009 38221 91571 91570 87687 81591 77520 56351 54083 29521 20715 1423 21425 21417 14679 3302 95487 88136 65094 66906 59105 59104 59101 97867 68778 57482 45...
result:
ok q=100000
Test #113:
score: 0
Accepted
time: 127ms
memory: 23232kb
input:
10000 100000 303 1 1 306 1 309 603 1 1 624 1 713 1 954 1019 1 1921 1 2013 1 1 2239 2768 1 1 2899 4285 1 4773 1 1 5281 1 5596 5739 1 5755 1 5849 1 6228 1 1 7029 1 7255 7597 1 7679 1 9099 1 1 9342 966 2 2 1630 2 1984 2339 2 2 2603 2 3021 2 3661 2 3766 6428 2 2 7230 2 7652 7773 2 7997 2 9437 2 9475 2 9...
output:
2064 2063 2059 2055 1237 43131 43128 43124 15850 13526 4322 69796 69793 69791 63270 62327 56004 44969 44965 32011 98873 98488 31657 13583 99841 96803 64722 40928 7178 5878 20913 20912 20910 20908 20907 20905 20900 20898 10785 8537 68550 68549 68450 7358 58033 58031 58026 33344 15717 66615 66613 5260...
result:
ok q=100000
Test #114:
score: 0
Accepted
time: 306ms
memory: 23080kb
input:
10000 100000 1 687 1 2238 2339 1 2540 1 3744 1 1 4048 1 5868 1 6041 7833 1 8786 1 9222 1 935 2 2 1185 2 1659 1973 2 2 2048 2 2569 3163 2 3286 2 2 4612 5511 2 2 5535 5942 2 2 6222 2 6365 2 6547 6954 2 2 7976 8670 2 9133 2 2 9507 1116 3 1283 3 3 1886 3 2675 4460 3 5444 3 3 6072 3 7681 8072 3 8104 3 3 ...
output:
99727
result:
ok q=100000
Test #115:
score: 0
Accepted
time: 289ms
memory: 23112kb
input:
10000 100000 16 1 1 226 1 546 1 751 1 1332 1 2446 2702 1 2853 1 4522 1 4669 1 1 4771 1 5035 5108 1 1 5221 1 5265 5519 1 8583 1 1 8612 1 9249 1 9798 20 2 2 312 534 2 689 2 1484 2 2304 2 2351 2 2 3520 2 3886 4324 2 4432 2 4630 2 4977 2 6737 2 7547 2 2 7610 2 7638 7669 2 7678 2 7894 2 2 8781 2 8824 904...
output:
72104 72103 59025 92150 99946 67347 87261 90424 95075 33909 33908 50492 75884 96222 82342 15663 47850 91874 91873 7370 88934 69182 57950 67807 98375 37641 54680 76560 3347 96693 61549 77337 77336 96147 47485 22349 88775 81341 89991 67359 96689 97646 99381 98665 95461 61789 71847 71846 23817 95291 65...
result:
ok q=100000
Test #116:
score: 0
Accepted
time: 230ms
memory: 23092kb
input:
10000 100000 1 634 1 773 973 1 1993 1 1 2206 1 2258 1 2674 2934 1 3289 1 1 3486 1 3665 3870 1 1 4202 1 4222 4916 1 1 5131 5341 1 1 5589 1 7234 1 7419 1 7603 1 7647 1 7871 1 7887 8704 1 2 165 2 334 2 896 2 1110 1438 2 1649 2 1824 2 2158 2 2 2205 2781 2 2 2912 2 4077 2 4501 4528 2 2 5391 2 5496 2 5811...
output:
0 68732 67028 86972 58360 58359 58358 58357 58356 99856 23684 49744 49743 49742 43258 53354 53353 53352 99210 13722 58759 83541 83540 89760 24730 99520 97413 96756 11399 80067 80284 99287 38934 80687 80686 80685 91200 92158 92157 91066 97975 34225 34224 99931 79633 93628 60092 69621 85002 79899 7989...
result:
ok q=100000
Test #117:
score: 0
Accepted
time: 211ms
memory: 23080kb
input:
10000 100000 141 1 1 864 1 1515 1 1659 1 1665 1 1986 1 2432 2546 1 1 2598 1 2721 2792 1 3557 1 3736 1 1 7164 7510 1 1 9187 9424 1 2 2738 2 2936 3033 2 2 4575 4971 2 2 5719 6196 2 2 6465 2 6500 2 6665 2 7093 7520 2 2 7675 2 9723 3 130 3 279 755 3 3 964 1475 3 1750 3 3 1879 3 1961 3 2223 3 3125 3 3484...
output:
0 96341 6148 93837 56819 56818 56817 94673 97199 97198 94575 94574 98334 99379 83279 83278 98973 65685 65684 65683 84797 84796 85293 85292 50365 50364 50363 50362 50361 50360 50359 50358 68553 19477 18127 18126 89742 28989 28988 28987 36007 36006 17478 99881 13136 75045 75044 75043 62891 62890 62889...
result:
ok q=100000
Test #118:
score: 0
Accepted
time: 183ms
memory: 23060kb
input:
10000 100000 1 496 1 976 1674 1 1 2091 1 2796 1 3047 1 3734 1 4361 1 4620 6855 1 1 6896 1 8073 8352 1 1 8572 8781 1 1 8857 1 8915 1 9035 1 9294 9490 1 9985 1 673 2 855 2 2 1012 1711 2 2 1902 2426 2 2 2597 2960 2 2 4925 2 5659 7946 2 7990 2 2 8450 2 8638 2 8646 2 8918 9379 2 3 443 3 458 3 1247 3 1405...
output:
29979 29978 84573 58946 58945 58944 58943 92507 92506 92505 11220 11219 11218 11217 84516 97785 95431 94786 99136 99135 99119 84490 71076 87281 87280 81168 81167 81166 76522 76521 81888 81887 81886 81885 81884 97369 97368 42646 44875 35251 35250 35249 85764 85763 85762 85761 99583 99332 99132 66774 ...
result:
ok q=100000
Test #119:
score: 0
Accepted
time: 138ms
memory: 23056kb
input:
10000 100000 155 1 1 312 458 1 1 1772 1 2247 2334 1 1 2939 1 3031 4298 1 1 4460 1 6773 6873 1 7230 1 7285 1 7408 1 8385 1 1 8469 1 9022 9310 1 245 2 883 2 2 1068 1159 2 2 1844 2 2177 2 2407 2670 2 2820 2 2 2948 3701 2 3801 2 2 4259 2 4406 4662 2 5265 2 2 6295 7931 2 9316 2 2 9595 88 3 125 3 1259 3 3...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 42535 42534 53540 53539 53538 53537 53536 53535 53534 53533 53532 53531 98780 98406 94466 85708 13776 13775 13774 13773 13772 13771 13770 13769 13768 13767 13766 13765 13764 85837 85836 85835 85834 85833 85832 85831 85830 82550 58553 58552 58551 58550 58549 58548 98525 9788...
result:
ok q=100000
Test #120:
score: 0
Accepted
time: 98ms
memory: 23148kb
input:
10000 100000 121 1 1 242 1 1247 1325 1 1 1445 2211 1 2687 1 3212 1 1 3458 1 4405 1 4473 5781 1 1 5987 6973 1 7680 1 1 9000 9059 1 1 9514 9600 1 51 2 2 693 1286 2 1391 2 2 1705 2 3339 3471 2 2 3864 2 5097 2 5130 5658 2 2 6647 6819 2 2 7138 2 7764 2 7810 8298 2 2 8369 8894 2 2 9880 3 53 3 625 3 779 14...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #121:
score: 0
Accepted
time: 129ms
memory: 23904kb
input:
9970 100000 2 1 3 1 1 4 1 5 1 6 1 7 8 1 1 9 10 1 1 11 1 12 1 13 14 1 1 15 1 16 17 1 18 1 19 1 20 1 21 1 22 1 23 1 1 24 1 25 26 1 1 27 1 28 1 29 1 30 31 1 32 1 1 33 1 34 35 1 1 36 37 1 1 38 39 1 40 1 41 1 1 42 43 1 1 44 45 1 1 46 47 1 48 1 1 49 50 1 1 51 52 1 53 1 1 54 55 1 1 56 1 57 1 58 1 59 1 60 6...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #122:
score: 0
Accepted
time: 189ms
memory: 24028kb
input:
9970 100000 2 1 1 3 1 4 5 1 1 6 1 7 1 8 9 1 1 10 11 1 12 1 13 1 14 1 1 15 1 16 17 1 1 18 19 1 1 20 21 1 22 1 1 23 24 1 1 25 1 26 27 1 1 28 1 29 1 30 1 31 1 32 1 33 34 1 35 1 1 36 37 1 1 38 39 1 40 1 41 1 1 42 1 43 1 44 1 45 1 46 1 47 48 1 1 49 1 50 1 51 52 1 53 1 54 1 55 1 56 1 57 1 58 1 1 59 1 60 6...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #123:
score: 0
Accepted
time: 55ms
memory: 21252kb
input:
9970 100000 2 1 3 1 4 1 1 5 1 6 7 1 8 1 1 9 1 10 1 11 12 1 13 1 1 14 15 1 16 1 17 1 1 18 19 1 20 1 21 1 1 22 1 23 24 1 1 25 26 1 27 1 1 28 29 1 30 1 31 1 1 32 33 1 34 1 1 35 1 36 37 1 1 38 1 39 40 1 41 1 42 1 43 1 1 44 45 1 46 1 47 1 48 1 1 49 50 1 51 1 1 52 1 53 1 54 55 1 1 56 1 57 1 58 1 59 60 1 6...
output:
9969 0 9968 0 9967 0 9966 0 9965 0 9964 0 9963 0 9962 0 9961 0 9960 0 9959 0 9958 0 9957 0 9956 0 9955 0 9954 0 9953 0 9952 0 9951 0 9950 0 9949 0 9948 0 9947 0 9946 0 9945 0 9944 0 9943 0 9942 0 9941 0 9940 0 9939 0 9938 0 9937 0 9936 0 9935 0 9934 0 9933 0 9932 0 9931 0 9930 0 9929 0 9928 0 9927 0...
result:
ok q=100000
Test #124:
score: 0
Accepted
time: 68ms
memory: 21248kb
input:
9970 100000 2 1 1 3 1 4 1 5 6 1 1 7 8 1 9 1 10 1 1 11 1 12 13 1 14 1 1 15 16 1 17 1 1 18 1 19 1 20 1 21 22 1 23 1 24 1 1 25 1 26 1 27 1 28 29 1 1 30 1 31 32 1 33 1 1 34 1 35 1 36 1 37 1 38 39 1 40 1 1 41 1 42 1 43 1 44 45 1 46 1 1 47 1 48 1 49 1 50 51 1 1 52 1 53 1 54 1 55 56 1 57 1 58 1 1 59 1 60 6...
output:
9969 9968 0 9967 0 9966 9965 0 9964 9963 0 0 9962 0 0 0 9961 0 0 9960 9959 0 0 0 9958 9957 0 9956 9955 9954 9953 9952 9951 9950 0 0 9949 9948 9947 9946 9945 0 9944 0 0 0 0 9943 9942 9941 0 9940 9939 0 0 0 0 0 0 9938 0 9937 0 9936 9935 9934 9933 9932 9931 0 0 0 0 0 0 0 0 9930 0 9929 0 0 9928 9927 992...
result:
ok q=100000
Test #125:
score: 0
Accepted
time: 158ms
memory: 22716kb
input:
9970 100000 1 2 3 1 1 5 7 1 1 9 11 1 1 13 15 1 17 1 19 1 21 1 1 23 25 1 1 27 1 29 1 31 1 33 35 1 37 1 39 1 1 41 43 1 45 1 47 1 1 49 1 51 1 53 1 55 1 57 1 59 61 1 1 63 65 1 1 67 69 1 71 1 1 73 1 75 77 1 1 79 1 81 83 1 1 85 1 87 1 89 1 91 1 93 1 95 1 97 1 99 101 1 1 103 1 105 1 107 109 1 111 1 113 1 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #126:
score: 0
Accepted
time: 210ms
memory: 22600kb
input:
9970 100000 2 1 3 1 5 1 1 7 9 1 1 11 13 1 1 15 17 1 19 1 1 21 23 1 1 25 1 27 29 1 1 31 33 1 35 1 37 1 1 39 41 1 43 1 1 45 1 47 49 1 1 51 53 1 55 1 1 57 1 59 61 1 63 1 1 65 1 67 1 69 1 71 73 1 1 75 1 77 79 1 1 81 1 83 1 85 87 1 89 1 91 1 93 1 95 1 1 97 1 99 1 101 103 1 105 1 107 1 109 1 111 1 1 113 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #127:
score: 0
Accepted
time: 69ms
memory: 21324kb
input:
9970 100000 1 2 1 3 1 5 1 7 9 1 11 1 13 1 1 15 1 17 19 1 1 21 1 23 25 1 1 27 1 29 1 31 1 33 35 1 37 1 1 39 41 1 1 43 45 1 1 47 1 49 51 1 53 1 55 1 1 57 59 1 1 61 1 63 1 65 1 67 1 69 1 71 1 73 75 1 77 1 79 1 1 81 83 1 85 1 87 1 89 1 1 91 93 1 1 95 97 1 1 99 101 1 103 1 1 105 1 107 1 109 111 1 1 113 1...
output:
4985 0 1 4984 4983 4982 4981 0 9969 4980 9968 4979 4978 4977 4976 0 9967 0 9966 0 9965 4975 9964 4974 9963 4973 9962 0 9961 0 4972 4971 9960 4970 4969 0 9959 4968 4967 0 4966 4965 4964 0 4963 4962 9958 4961 9957 4960 4959 0 9956 0 9955 0 9954 0 9953 0 4958 4957 4956 0 4955 0 4954 4953 9952 4952 4951...
result:
ok q=100000
Test #128:
score: 0
Accepted
time: 75ms
memory: 21256kb
input:
9970 100000 1 2 1 3 1 5 7 1 1 9 1 11 1 13 1 15 17 1 1 19 21 1 23 1 25 1 1 27 1 29 1 31 33 1 35 1 1 37 39 1 1 41 1 43 1 45 47 1 49 1 1 51 53 1 1 55 57 1 59 1 61 1 63 1 65 1 67 1 1 69 1 71 1 73 1 75 1 77 79 1 81 1 1 83 85 1 87 1 1 89 1 91 93 1 1 95 1 97 1 99 101 1 103 1 1 105 107 1 109 1 1 111 1 113 1...
output:
0 0 0 0 1 9969 9968 9967 4985 4984 9966 4983 4982 9965 9964 9963 0 4981 4980 9962 9961 4979 4978 4977 4976 4975 4974 4973 4972 4971 4970 4969 0 4968 0 9960 9959 4967 4966 0 0 4965 4964 4963 9958 0 9957 0 0 4962 4961 0 0 0 0 0 0 4960 4959 4958 4957 4956 4955 4954 4953 9956 9955 9954 9953 0 0 4952 495...
result:
ok q=100000
Test #129:
score: 0
Accepted
time: 147ms
memory: 22248kb
input:
9970 100000 3 1 1 4 7 1 1 10 13 1 16 1 1 19 22 1 25 1 1 28 31 1 1 34 37 1 1 40 43 1 1 46 49 1 52 1 1 55 58 1 1 61 1 64 1 67 1 70 73 1 1 76 1 79 1 82 1 85 1 88 91 1 94 1 97 1 100 1 103 1 1 106 109 1 112 1 1 115 1 118 121 1 124 1 1 127 130 1 133 1 136 1 139 1 1 142 145 1 1 148 1 151 1 154 1 157 160 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #130:
score: 0
Accepted
time: 175ms
memory: 22224kb
input:
9970 100000 3 1 1 4 7 1 10 1 13 1 1 16 19 1 1 22 25 1 1 28 1 31 1 34 1 37 1 40 43 1 1 46 1 49 1 52 1 55 1 58 1 61 1 64 1 67 1 70 73 1 1 76 79 1 1 82 1 85 1 88 1 91 1 94 1 97 1 100 1 103 1 106 1 109 1 112 1 115 118 1 1 121 124 1 127 1 130 1 1 133 1 136 1 139 1 142 1 145 1 148 151 1 154 1 1 157 1 160 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #131:
score: 0
Accepted
time: 90ms
memory: 21652kb
input:
9970 100000 2 1 3 1 1 4 1 7 10 1 1 13 1 16 19 1 22 1 25 1 1 28 1 31 1 34 37 1 1 40 1 43 1 46 49 1 1 52 1 55 1 58 1 61 1 64 67 1 1 70 73 1 1 76 1 79 82 1 1 85 1 88 91 1 94 1 97 1 100 1 1 103 1 106 109 1 1 112 115 1 118 1 121 1 1 124 1 127 1 130 133 1 1 136 139 1 1 142 145 1 1 148 1 151 1 154 1 157 16...
output:
2 3325 9969 3324 9968 1 9967 0 6647 6646 6645 3323 3322 6644 6643 3321 6642 3320 6641 6640 9966 3319 9965 6639 6638 3318 3317 3316 9964 0 9963 3315 3314 3313 3312 3311 3310 3309 6637 3308 6636 0 9962 6635 6634 0 9961 0 6633 3307 6632 3306 6631 3305 3304 6630 3303 3302 3301 6629 6628 0 6627 6626 9960...
result:
ok q=100000
Test #132:
score: 0
Accepted
time: 62ms
memory: 21672kb
input:
9970 100000 1 2 1 3 4 1 7 1 1 10 13 1 16 1 1 19 22 1 25 1 1 28 1 31 1 34 1 37 40 1 43 1 46 1 1 49 1 52 1 55 1 58 1 61 64 1 1 67 70 1 1 73 76 1 1 79 82 1 1 85 1 88 91 1 1 94 1 97 1 100 1 103 1 106 109 1 1 112 1 115 118 1 121 1 124 1 127 1 130 1 133 1 1 136 1 139 142 1 145 1 1 148 151 1 1 154 1 157 1 ...
output:
2 3325 9969 1 9968 9967 0 0 6647 6646 6645 3324 6644 6643 6642 6641 3323 6640 6639 6638 6637 6636 3322 3321 3320 3319 3318 3317 3316 3315 3314 3313 3312 6635 3311 3310 3309 3308 3307 3306 3305 3304 3303 6634 9966 9965 0 0 6633 3302 6632 6631 6630 6629 6628 6627 6626 6625 9964 3301 3300 3299 3298 0 3...
result:
ok q=100000
Test #133:
score: 0
Accepted
time: 113ms
memory: 22228kb
input:
9970 100000 3 1 1 5 1 9 1 13 17 1 21 1 25 1 1 29 33 1 1 37 1 41 45 1 49 1 53 1 57 1 61 1 65 1 1 69 1 73 1 77 1 81 85 1 1 89 93 1 97 1 101 1 105 1 1 109 113 1 117 1 121 1 125 1 1 129 133 1 1 137 1 141 1 145 149 1 1 153 157 1 1 161 1 165 1 169 1 173 1 177 181 1 185 1 189 1 193 1 1 197 201 1 1 205 209 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #134:
score: 0
Accepted
time: 161ms
memory: 22056kb
input:
9970 100000 1 2 1 3 1 5 9 1 1 13 1 17 1 21 1 25 29 1 1 33 37 1 1 41 45 1 1 49 1 53 1 57 1 61 65 1 69 1 73 1 1 77 1 81 1 85 1 89 1 93 1 97 101 1 105 1 109 1 1 113 1 117 121 1 125 1 1 129 1 133 137 1 1 141 145 1 1 149 153 1 1 157 1 161 1 165 169 1 173 1 1 177 1 181 1 185 1 189 193 1 1 197 1 201 205 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #135:
score: 0
Accepted
time: 56ms
memory: 21640kb
input:
9970 100000 1 2 1 5 9 1 13 1 17 1 1 21 25 1 1 29 33 1 1 37 41 1 1 45 1 49 1 53 1 57 61 1 65 1 69 1 73 1 77 1 1 81 85 1 89 1 93 1 1 97 101 1 1 105 1 109 1 113 1 117 1 121 1 125 129 1 1 133 1 137 1 141 1 145 1 149 153 1 1 157 1 161 165 1 169 1 1 173 177 1 181 1 1 185 189 1 193 1 197 1 1 201 205 1 1 20...
output:
2494 2493 2492 2491 2490 2489 2488 1 2487 2486 4987 2495 4986 4985 2485 2484 2483 2482 9969 7478 7477 0 7476 4984 2481 2480 2479 4983 4982 4981 7475 7474 9968 4980 9967 2478 9966 0 7473 7472 7471 7470 4979 4978 4977 2477 4976 7469 7468 4975 4974 4973 4972 4971 4970 4969 4968 4967 4966 7467 2476 2475...
result:
ok q=100000
Test #136:
score: 0
Accepted
time: 82ms
memory: 21776kb
input:
9970 100000 1 3 5 1 9 1 13 1 1 17 21 1 25 1 1 29 33 1 1 37 1 41 1 45 1 49 53 1 57 1 61 1 65 1 69 1 73 1 77 1 1 81 85 1 1 89 1 93 1 97 1 101 105 1 109 1 113 1 1 117 1 121 1 125 129 1 1 133 137 1 141 1 145 1 1 149 153 1 157 1 1 161 1 165 1 169 1 173 1 177 181 1 1 185 1 189 193 1 1 197 1 201 1 205 1 20...
output:
0 0 0 0 4987 9969 1 2494 7478 7477 9968 4986 4985 4984 2493 2492 2491 2490 2489 2488 2487 9967 7476 7475 7474 9966 9965 7473 7472 9964 7471 7470 9963 9962 2486 9961 7469 2485 2484 2483 4983 4982 4981 2482 2481 2480 2479 2478 2477 2476 0 0 7468 7467 7466 7465 7464 0 0 0 2475 2474 2473 2472 2471 2470 ...
result:
ok q=100000
Test #137:
score: 0
Accepted
time: 130ms
memory: 21940kb
input:
9970 100000 3 1 4 1 1 5 6 1 11 1 1 16 1 21 1 26 1 31 36 1 41 1 1 46 1 51 1 56 61 1 66 1 1 71 76 1 81 1 86 1 91 1 1 96 101 1 106 1 111 1 1 116 1 121 1 126 131 1 136 1 1 141 146 1 151 1 156 1 1 161 1 166 171 1 176 1 181 1 186 1 1 191 196 1 201 1 206 1 211 1 216 1 221 1 226 1 231 1 1 236 1 241 1 246 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #138:
score: 0
Accepted
time: 174ms
memory: 21964kb
input:
9970 100000 3 1 6 1 11 1 1 16 1 21 26 1 1 31 1 36 1 41 46 1 51 1 56 1 61 1 1 66 1 71 1 76 81 1 86 1 1 91 96 1 1 101 1 106 1 111 116 1 1 121 126 1 131 1 1 136 141 1 1 146 151 1 156 1 161 1 166 1 1 171 176 1 1 181 186 1 1 191 196 1 1 201 206 1 1 211 1 216 1 221 1 226 1 231 1 236 241 1 1 246 251 1 1 25...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #139:
score: 0
Accepted
time: 63ms
memory: 21596kb
input:
9970 100000 1 2 1 6 11 1 16 1 1 21 26 1 31 1 1 36 41 1 46 1 51 1 56 1 1 61 66 1 1 71 1 76 81 1 1 86 91 1 1 96 1 101 106 1 111 1 116 1 121 1 126 1 1 131 1 136 141 1 1 146 151 1 156 1 161 1 166 1 171 1 176 1 181 1 186 1 191 1 1 196 1 201 206 1 1 211 1 216 1 221 1 226 1 231 1 236 241 1 246 1 1 251 256 ...
output:
1995 0 1996 3990 5984 5983 5982 5981 1994 5980 1993 1992 1991 1990 1 5979 5978 1989 1988 1987 1986 1985 3989 3988 3987 3986 5977 5976 1984 1983 1982 5975 7977 0 1981 0 9970 3985 1980 1979 1978 1977 1976 1975 7976 0 1974 0 3984 3983 3982 1973 1972 1971 1970 5974 5973 3981 1969 1968 1967 1966 1965 196...
result:
ok q=100000
Test #140:
score: 0
Accepted
time: 62ms
memory: 21704kb
input:
9970 100000 1 2 3 1 6 1 1 11 1 16 1 21 1 26 31 1 36 1 41 1 1 46 51 1 56 1 1 61 1 66 71 1 1 76 81 1 86 1 91 1 96 1 1 101 106 1 111 1 116 1 121 1 126 1 131 1 136 1 1 141 1 146 151 1 1 156 1 161 1 166 1 171 1 176 1 181 1 186 191 1 1 196 201 1 206 1 1 211 216 1 221 1 226 1 231 1 1 236 1 241 1 246 251 1 ...
output:
0 7977 7976 7975 7974 7973 7972 1 7971 7970 7969 7968 3989 3988 3987 3986 3985 3984 3983 3982 3981 5984 7967 7966 1995 1994 1993 1992 1991 1990 1989 1988 1987 1986 1985 1984 1983 1982 1981 1980 1979 1978 1977 1976 1975 1974 1973 1972 2 1971 1970 1969 1968 1967 1966 1965 1964 1963 1962 1961 1960 1959...
result:
ok q=100000
Test #141:
score: 0
Accepted
time: 151ms
memory: 21964kb
input:
9970 100000 2 1 1 6 1 7 13 1 19 1 1 25 1 31 1 37 1 43 1 49 1 55 1 61 1 67 73 1 79 1 1 85 91 1 1 97 103 1 109 1 115 1 121 1 127 1 1 133 1 139 145 1 151 1 157 1 1 163 1 169 175 1 181 1 187 1 1 193 199 1 1 205 1 211 1 217 223 1 1 229 1 235 241 1 247 1 253 1 1 259 1 265 271 1 277 1 1 283 289 1 1 295 301...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3327 4991 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #142:
score: 0
Accepted
time: 166ms
memory: 22140kb
input:
9970 100000 2 1 1 3 4 1 1 6 7 1 1 13 1 19 1 25 1 31 1 37 43 1 1 49 1 55 61 1 67 1 1 73 79 1 85 1 1 91 1 97 1 103 109 1 115 1 121 1 1 127 133 1 1 139 145 1 1 151 157 1 163 1 1 169 175 1 181 1 187 1 193 1 1 199 205 1 1 211 217 1 223 1 229 1 1 235 241 1 1 247 1 253 259 1 265 1 271 1 1 277 1 283 289 1 2...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #143:
score: 0
Accepted
time: 64ms
memory: 21700kb
input:
9970 100000 4 1 1 5 6 1 7 1 1 13 1 19 25 1 31 1 37 1 1 43 49 1 55 1 61 1 67 1 1 73 1 79 85 1 1 91 97 1 103 1 1 109 1 115 121 1 1 127 133 1 1 139 1 145 151 1 1 157 163 1 1 169 175 1 181 1 187 1 1 193 1 199 1 205 211 1 1 217 1 223 229 1 235 1 1 241 247 1 253 1 1 259 265 1 1 271 1 277 1 283 1 289 1 295...
output:
2 0 3328 3 3327 1664 1663 1662 1 3326 1667 1665 1661 1660 1659 1658 1657 1656 1655 1654 1653 1652 1651 1650 1649 1648 1647 1646 1645 1644 1643 1642 1666 4989 4988 4987 6651 4986 6650 4985 4984 4990 1641 1640 6652 4983 1639 1638 1637 1636 1635 3325 4982 1634 1633 4981 4980 6649 4979 6648 6647 3324 33...
result:
ok q=100000
Test #144:
score: 0
Accepted
time: 80ms
memory: 21776kb
input:
9970 100000 3 1 1 4 5 1 1 7 13 1 19 1 1 25 1 31 37 1 43 1 1 49 55 1 61 1 67 1 73 1 79 1 1 85 1 91 1 97 1 103 109 1 1 115 1 121 1 127 1 133 139 1 1 145 151 1 1 157 163 1 1 169 175 1 181 1 187 1 1 193 199 1 205 1 211 1 217 1 1 223 1 229 235 1 1 241 1 247 1 253 259 1 1 265 271 1 1 277 283 1 1 289 295 1...
output:
1664 1663 1662 1661 1660 1659 3 1658 1657 1656 1655 1654 1653 1652 1651 1650 1649 1648 1647 1646 1 4989 1645 1644 1643 1642 1641 1640 1639 1638 1637 1636 1635 1634 1633 1632 2 1665 3328 6652 3327 3326 4990 8312 8311 6651 6650 6649 6648 4988 4987 4986 4985 4984 4983 4982 4981 4980 1631 4979 4978 4977...
result:
ok q=100000
Test #145:
score: 0
Accepted
time: 154ms
memory: 21772kb
input:
9970 100000 3 1 6 1 1 7 1 8 15 1 1 22 29 1 1 36 43 1 1 50 1 57 1 64 71 1 1 78 1 85 92 1 1 99 1 106 1 113 1 120 1 127 1 134 141 1 148 1 1 155 162 1 169 1 176 1 183 1 190 1 197 1 204 1 211 1 1 218 225 1 1 232 239 1 246 1 1 253 1 260 1 267 1 274 281 1 1 288 1 295 302 1 309 1 1 316 1 323 330 1 1 337 344...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #146:
score: 0
Accepted
time: 181ms
memory: 21656kb
input:
9970 100000 1 3 5 1 6 1 1 8 15 1 22 1 29 1 36 1 1 43 50 1 57 1 64 1 1 71 1 78 1 85 92 1 99 1 106 1 113 1 1 120 127 1 134 1 141 1 1 148 1 155 1 162 169 1 1 176 1 183 1 190 197 1 1 204 1 211 218 1 1 225 1 232 1 239 1 246 253 1 1 260 1 267 274 1 1 281 288 1 1 295 302 1 1 309 1 316 1 323 1 330 1 337 344...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1430 2856 7128 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
result:
ok q=100000
Test #147:
score: 0
Accepted
time: 73ms
memory: 21908kb
input:
9970 100000 3 1 4 1 6 1 8 1 1 15 1 22 1 29 36 1 43 1 50 1 1 57 64 1 1 71 78 1 1 85 1 92 99 1 106 1 113 1 120 1 127 1 134 1 1 141 1 148 155 1 162 1 1 169 1 176 183 1 1 190 197 1 1 204 1 211 218 1 1 225 232 1 1 239 1 246 1 253 260 1 267 1 1 274 1 281 288 1 1 295 1 302 1 309 1 316 323 1 1 330 1 337 1 3...
output:
2854 1427 1426 1425 1424 1423 1422 2 3 1428 1 1430 1421 1420 1419 1418 1417 2855 1429 2853 2852 2851 2850 4278 4277 4276 1416 1415 1414 0 1413 1412 5703 2849 1411 1410 1409 4275 1408 1407 1406 1405 1404 1403 1402 1401 1400 1399 1398 2848 2847 2846 2845 2844 5702 4279 4274 1397 1396 5704 5701 5700 71...
result:
ok q=100000
Test #148:
score: 0
Accepted
time: 76ms
memory: 21656kb
input:
9970 100000 3 1 5 1 1 8 15 1 1 22 1 29 36 1 43 1 50 1 57 1 64 1 1 71 1 78 85 1 1 92 1 99 106 1 1 113 120 1 127 1 1 134 141 1 1 148 155 1 1 162 169 1 176 1 1 183 190 1 197 1 1 204 211 1 218 1 225 1 1 232 239 1 1 246 253 1 260 1 1 267 274 1 1 281 288 1 295 1 1 302 1 309 316 1 323 1 330 1 337 1 344 1 3...
output:
0 0 2855 1 2853 2852 2851 2850 1426 1425 1424 1423 1422 1421 1420 1419 1418 1417 1416 1415 2849 1427 2848 2847 2846 4281 5705 9974 2845 2844 2843 2842 2841 2 2840 2839 2838 2837 2836 2835 2834 2833 1428 2832 2831 2830 2829 1429 2828 2827 2826 2825 2824 2823 4278 4277 4276 4275 4274 4273 4272 4271 42...
result:
ok q=100000
Test #149:
score: 0
Accepted
time: 143ms
memory: 21676kb
input:
9970 100000 2 1 1 3 1 4 5 1 7 1 8 1 1 9 1 17 25 1 1 33 1 41 1 49 1 57 1 65 73 1 1 81 1 89 1 97 1 105 1 113 121 1 1 129 137 1 145 1 1 153 161 1 169 1 177 1 1 185 193 1 201 1 209 1 1 217 1 225 233 1 241 1 1 249 257 1 265 1 1 273 1 281 289 1 297 1 305 1 1 313 321 1 329 1 1 337 345 1 353 1 1 361 1 369 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #150:
score: 0
Accepted
time: 182ms
memory: 21780kb
input:
9970 100000 1 4 1 5 6 1 8 1 9 1 17 1 25 1 1 33 1 41 1 49 57 1 65 1 1 73 81 1 89 1 97 1 105 1 1 113 121 1 1 129 137 1 145 1 1 153 1 161 1 169 177 1 1 185 1 193 1 201 209 1 217 1 1 225 233 1 1 241 249 1 257 1 265 1 1 273 1 281 289 1 1 297 305 1 1 313 321 1 1 329 1 337 345 1 1 353 361 1 369 1 377 1 385...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 1254 7486 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #151:
score: 0
Accepted
time: 55ms
memory: 21664kb
input:
9970 100000 1 3 1 6 8 1 1 9 17 1 25 1 33 1 1 41 1 49 57 1 65 1 73 1 81 1 89 1 1 97 105 1 113 1 121 1 1 129 1 137 1 145 1 153 161 1 169 1 177 1 1 185 193 1 1 201 209 1 1 217 1 225 233 1 1 241 249 1 257 1 265 1 1 273 281 1 289 1 1 297 1 305 1 313 1 321 1 329 1 337 345 1 353 1 1 361 1 369 1 377 385 1 1...
output:
1 1250 3746 2 3745 3744 2499 3743 3 1251 1252 2501 3747 3748 4993 2498 2497 4992 2500 2496 1249 1248 1247 1246 1245 1244 1243 1242 1241 1240 1239 1238 1237 2495 2494 2493 1236 1235 1234 1233 1232 1231 1230 1229 1228 1227 1226 1225 1224 4991 1223 1222 1221 1220 1219 1218 1217 1216 1215 2492 2491 1214...
result:
ok q=100000
Test #152:
score: 0
Accepted
time: 70ms
memory: 21760kb
input:
9970 100000 2 1 1 3 5 1 1 9 17 1 25 1 1 33 41 1 1 49 1 57 65 1 73 1 81 1 89 1 1 97 105 1 1 113 121 1 1 129 1 137 145 1 153 1 1 161 1 169 1 177 185 1 193 1 201 1 1 209 1 217 225 1 1 233 241 1 249 1 257 1 265 1 1 273 1 281 1 289 297 1 1 305 1 313 1 321 1 329 337 1 345 1 353 1 1 361 1 369 377 1 1 385 1...
output:
0 0 4993 1252 3747 7486 7485 1249 1248 7484 7483 7482 7481 7480 2500 2 1250 3745 3744 3748 4994 4995 7479 1247 1246 1245 1244 1243 1242 1241 1240 1239 1238 1237 1236 1235 1234 1233 1232 1231 3 1251 2499 3746 3743 3742 3741 3740 4992 1230 1229 1228 1227 1226 1225 1224 1223 1222 1221 1220 1219 1218 12...
result:
ok q=100000
Test #153:
score: 0
Accepted
time: 2343ms
memory: 21332kb
input:
1000 100000 1 5 17 1 22 1 33 1 1 34 35 1 41 1 1 55 1 56 60 1 75 1 76 1 1 77 88 1 1 89 1 93 1 95 1 96 97 1 98 1 1 103 1 105 108 1 1 112 1 115 116 1 143 1 1 147 156 1 164 1 1 168 183 1 188 1 197 1 198 1 199 1 210 1 1 213 215 1 1 217 223 1 224 1 225 1 228 1 1 233 236 1 240 1 249 1 250 1 258 1 259 1 1 2...
output:
33778
result:
ok q=100000
Test #154:
score: 0
Accepted
time: 1806ms
memory: 21624kb
input:
1000 100000 1 10 1 16 21 1 23 1 1 28 30 1 1 31 1 36 39 1 1 44 1 45 1 48 1 57 61 1 62 1 1 63 67 1 69 1 77 1 1 78 1 84 1 91 94 1 96 1 1 100 1 104 112 1 115 1 1 120 1 124 128 1 130 1 137 1 148 1 1 161 164 1 170 1 1 173 1 185 188 1 189 1 1 192 1 195 1 200 207 1 1 210 1 219 230 1 237 1 239 1 245 1 247 1 ...
output:
31823 90641 12404 64410 8572 85051 20936 54597 58376 99047 98817 65828 78010 78009 12587 95881 86650 76365 81967 6620 55377 55376 24894 87867 5643 5639 98842 64062 64055 57204 93535 99769 99671 88016 48898 19861 97726 98266 98264 95847 24699 98286 88106 75671 75668 75665 75663 55495 98452 91059 3718...
result:
ok q=100000
Test #155:
score: 0
Accepted
time: 1388ms
memory: 21280kb
input:
1000 100000 1 10 1 13 14 1 16 1 1 19 21 1 32 1 1 39 40 1 1 44 49 1 1 51 52 1 1 54 1 56 61 1 63 1 70 1 1 73 1 83 1 87 1 99 101 1 104 1 111 1 114 1 119 1 121 1 122 1 126 1 1 130 133 1 135 1 1 146 150 1 158 1 170 1 183 1 1 184 185 1 186 1 187 1 1 190 192 1 196 1 205 1 208 1 223 1 227 1 1 235 1 242 244 ...
output:
94802 54881 53950 53949 70218 86912 86911 83045 12224 40186 40185 84761 99584 25249 25245 31083 96650 75090 91299 19107 19104 46520 46519 8352 95056 41893 91163 20859 20858 76195 99031 99027 99994 15868 15858 74131 7202 58055 81223 81221 99828 99827 97333 32786 32785 25233 72109 87474 33796 33790 33...
result:
ok q=100000
Test #156:
score: 0
Accepted
time: 913ms
memory: 21288kb
input:
1000 100000 1 2 3 1 5 1 1 8 9 1 10 1 1 11 19 1 21 1 42 1 44 1 45 1 1 46 1 67 69 1 1 75 1 87 1 88 100 1 103 1 114 1 121 1 1 123 127 1 131 1 1 143 1 149 151 1 153 1 159 1 1 163 1 174 176 1 1 185 1 186 191 1 1 194 1 205 210 1 1 215 1 217 1 219 1 220 222 1 1 229 232 1 234 1 1 237 240 1 1 241 245 1 1 247...
output:
0 0 0 0 0 0 0 98306 98483 19495 19494 30170 30169 32157 10243 10241 10237 98838 18629 18627 99423 95830 95829 79897 79896 79895 79894 98052 98050 74280 92984 92983 92982 92980 47803 31521 85929 42105 42101 99089 76953 80930 80929 33600 33599 33595 51451 51450 51448 39619 39618 39613 16998 98835 9586...
result:
ok q=100000
Test #157:
score: 0
Accepted
time: 612ms
memory: 21240kb
input:
1000 100000 1 6 1 12 18 1 19 1 34 1 1 37 41 1 53 1 58 1 1 63 1 66 1 70 73 1 1 80 1 82 94 1 1 104 1 110 1 112 1 114 1 115 118 1 121 1 126 1 131 1 136 1 1 137 139 1 1 145 146 1 148 1 1 149 1 159 1 161 164 1 170 1 186 1 189 1 191 1 193 1 1 197 1 206 207 1 208 1 212 1 224 1 1 225 1 226 228 1 229 1 233 1...
output:
71041 71038 61456 61454 61453 61451 31721 78497 78496 78494 89600 99665 99664 67712 67711 67708 67707 67704 67703 67702 99906 30022 30020 99789 99787 99786 54155 54152 54148 99982 99977 43565 43560 43558 89574 61435 43557 43553 96546 95884 94632 15524 97523 97517 91309 91308 91307 91306 91304 91301 ...
result:
ok q=100000
Test #158:
score: 0
Accepted
time: 357ms
memory: 21224kb
input:
1000 100000 1 10 1 20 23 1 26 1 32 1 35 1 1 41 47 1 1 52 1 54 57 1 1 58 61 1 68 1 71 1 1 82 1 85 90 1 103 1 1 114 1 124 125 1 129 1 1 133 1 135 139 1 140 1 1 143 1 158 1 160 1 161 164 1 1 169 174 1 181 1 186 1 187 1 188 1 189 1 199 1 1 208 1 227 1 228 1 232 1 240 1 243 250 1 1 255 260 1 270 1 272 1 ...
output:
0 0 93530 93529 93527 93522 93520 93519 96123 74697 74694 74693 74691 74690 74688 74687 74686 71870 71869 71864 71863 71862 71858 58607 58606 58605 58604 58600 58598 58597 58595 95497 95496 95495 95494 95492 95490 14368 14367 14366 14365 14364 14361 14359 98452 52010 52006 52004 52000 51999 51997 91...
result:
ok q=100000
Test #159:
score: 0
Accepted
time: 68ms
memory: 19508kb
input:
1000 100000 5 1 1 11 1 20 1 37 43 1 44 1 47 1 48 1 54 1 1 63 69 1 1 70 72 1 73 1 83 1 84 1 1 86 1 93 1 94 1 95 1 101 1 108 114 1 115 1 124 1 137 1 1 141 1 144 1 151 158 1 159 1 160 1 167 1 175 1 181 1 1 183 1 191 1 196 1 198 1 203 1 213 1 215 216 1 239 1 245 1 246 1 249 1 1 254 261 1 264 1 277 1 289...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #160:
score: 0
Accepted
time: 2535ms
memory: 21328kb
input:
1000 100000 2 1 15 1 1 18 21 1 1 23 33 1 52 1 54 1 55 1 1 56 1 57 1 61 62 1 1 66 69 1 1 72 1 73 1 75 79 1 1 85 87 1 1 88 1 89 95 1 104 1 121 1 1 123 1 127 1 131 1 135 1 136 137 1 1 139 1 148 150 1 1 156 1 162 1 189 192 1 193 1 1 194 1 197 1 209 1 213 1 216 1 218 220 1 221 1 222 1 1 230 248 1 1 249 1...
output:
58535
result:
ok q=100000
Test #161:
score: 0
Accepted
time: 2035ms
memory: 21552kb
input:
1000 100000 5 1 11 1 1 15 23 1 25 1 1 26 1 27 1 30 35 1 39 1 1 49 1 53 1 57 1 72 1 73 1 78 1 81 83 1 1 85 1 87 88 1 96 1 101 1 1 107 110 1 1 112 116 1 118 1 1 121 1 123 124 1 125 1 131 1 134 1 1 137 1 140 141 1 143 1 155 1 1 157 1 168 171 1 177 1 182 1 184 1 185 1 1 187 193 1 1 206 207 1 1 208 209 1...
output:
82823 82822 81999 70557 52652 99794 87587 78212 85939 50767 68845 72237 29574 65659 92370 54363 77912 91105 99975 94786 88683 59779 90641 98578 50634 99283 59019 99820 75806 48390 92960 66907 92547 92546 60272 60271 90998 47952 96601 99643 89894 96076 4105 4103 64456 92220 66463 67924 67923 35575 49...
result:
ok q=100000
Test #162:
score: 0
Accepted
time: 1654ms
memory: 21604kb
input:
1000 100000 1 6 7 1 1 12 1 22 1 25 1 29 1 31 36 1 45 1 1 67 75 1 1 81 85 1 1 89 95 1 97 1 1 103 115 1 123 1 125 1 1 129 133 1 137 1 148 1 1 155 158 1 178 1 179 1 1 181 1 187 1 188 205 1 207 1 208 1 1 211 1 214 1 219 1 223 231 1 1 237 239 1 1 242 243 1 251 1 256 1 1 260 262 1 269 1 270 1 271 1 275 1 ...
output:
33011 33010 43005 27767 78789 7290 7285 7284 49606 49601 49600 76477 98985 98983 98981 80587 21876 21875 35136 35131 65137 67694 67693 90447 607 96302 51666 51660 56605 94597 80848 96346 96345 96339 98538 77433 77425 36276 99935 99867 81318 86148 86139 86131 93043 87900 87895 87899 75026 93556 64884...
result:
ok q=100000
Test #163:
score: 0
Accepted
time: 1070ms
memory: 21480kb
input:
1000 100000 3 1 8 1 9 1 1 16 28 1 45 1 1 49 1 55 1 56 57 1 66 1 68 1 1 70 1 74 78 1 1 84 1 85 86 1 87 1 97 1 99 1 103 1 105 1 1 107 1 111 1 112 1 127 130 1 1 133 1 134 142 1 143 1 149 1 161 1 167 1 1 168 172 1 1 174 1 179 1 190 193 1 1 195 1 202 205 1 1 209 216 1 217 1 218 1 1 219 1 229 1 234 236 1 ...
output:
64088 64087 21336 82841 86524 86521 86519 93484 20787 68200 68190 68189 74241 74240 74229 98588 72127 72125 99419 39702 39699 39696 91723 99008 23745 52152 94803 95440 95438 87065 87064 87063 98987 98982 98980 47464 94540 94539 98778 98777 83841 43490 69779 80893 80884 80879 80874 80867 80864 98540 ...
result:
ok q=100000
Test #164:
score: 0
Accepted
time: 663ms
memory: 21408kb
input:
1000 100000 1 13 16 1 17 1 1 22 1 24 29 1 1 30 1 55 57 1 1 58 59 1 1 72 73 1 75 1 77 1 1 85 87 1 1 89 90 1 1 93 1 99 101 1 1 103 1 106 1 119 1 122 125 1 145 1 1 151 1 158 1 163 1 167 170 1 179 1 184 1 1 187 1 193 1 201 202 1 204 1 1 207 1 211 213 1 216 1 222 1 224 1 226 1 234 1 1 242 246 1 259 1 1 2...
output:
91585 99589 99588 99402 99040 98836 98645 67719 83492 88398 97879 97878 97874 97871 97870 97864 66814 74094 74092 74091 74088 99481 99478 99477 54044 74711 74706 74705 74696 95745 95744 95735 95732 95730 95724 95723 95719 95715 85188 85181 85177 85176 2377 2372 2371 90920 90917 90913 90905 90904 908...
result:
ok q=100000
Test #165:
score: 0
Accepted
time: 385ms
memory: 21420kb
input:
1000 100000 2 1 3 1 9 1 11 1 22 1 1 33 1 39 1 42 1 43 1 44 1 49 67 1 68 1 73 1 76 1 78 1 81 1 1 84 85 1 87 1 88 1 1 93 1 99 108 1 128 1 1 129 1 132 134 1 135 1 138 1 1 142 144 1 1 150 1 155 158 1 160 1 1 170 1 175 183 1 1 193 1 197 213 1 1 215 216 1 222 1 1 225 1 233 234 1 235 1 242 1 258 1 268 1 1 ...
output:
17061 17059 11378 11376 11374 11372 11366 11364 11359 11358 11356 11354 11348 11338 11330 96669 96659 96658 96647 96645 96643 96316 51447 51445 51440 51439 51438 98510 93435 93434 82782 96736 96735 96728 96726 18145 18143 18142 18140 18138 68233 68227 68225 66891 66889 66888 66886 66881 66875 66867 ...
result:
ok q=100000
Test #166:
score: 0
Accepted
time: 122ms
memory: 21348kb
input:
1000 100000 13 1 22 1 1 24 1 29 32 1 42 1 46 1 50 1 1 56 1 62 66 1 1 68 1 69 71 1 1 73 1 75 81 1 1 87 88 1 94 1 1 96 101 1 107 1 1 108 110 1 111 1 126 1 1 143 148 1 1 150 160 1 166 1 176 1 1 180 1 183 1 195 1 206 211 1 1 213 1 216 219 1 236 1 1 238 1 242 1 249 251 1 252 1 256 1 266 1 1 277 1 293 295...
output:
88019 88018 87998 87994 87984 87983 87982 87980 87977 87976 87974 87971 87966 87963 87960 87958 87951 87947 87945 87944 86819 84921 84463 83827 80321 79952 70745 67360 63895 62183 60209 59452 58054 54107 50810 48003 46469 45884 44426 41792 40537 39610 37549 30704 30359 27915 24431 23917 16900 6703 1...
result:
ok q=100000
Test #167:
score: 0
Accepted
time: 2739ms
memory: 21324kb
input:
1000 100000 1 4 1 7 8 1 14 1 16 1 1 17 20 1 22 1 1 28 1 29 34 1 1 35 1 38 1 41 1 49 1 53 1 57 1 58 1 74 1 84 85 1 1 90 95 1 103 1 104 1 1 107 108 1 110 1 1 117 1 118 1 126 1 141 142 1 1 145 1 147 1 152 153 1 154 1 1 163 1 165 166 1 173 1 175 1 180 1 1 184 188 1 1 189 194 1 201 1 204 1 207 1 1 210 21...
output:
27330
result:
ok q=100000
Test #168:
score: 0
Accepted
time: 2047ms
memory: 21612kb
input:
1000 100000 15 1 18 1 1 26 31 1 1 37 1 40 42 1 1 46 1 48 1 49 1 53 55 1 1 68 75 1 82 1 83 1 89 1 92 1 102 1 106 1 1 113 1 114 1 119 1 121 1 123 128 1 129 1 130 1 1 133 140 1 1 143 1 153 1 154 1 163 1 167 168 1 171 1 176 1 178 1 1 190 191 1 1 192 1 200 201 1 204 1 205 1 1 206 212 1 1 215 1 218 1 223 ...
output:
97004 55217 96690 98749 97041 89426 88064 80935 37322 37321 64414 74603 74602 90528 54119 34596 834 833 82518 60339 96724 61564 63588 75185 75184 91347 98668 99781 98728 98177 98176 80031 93122 87471 15819 47381 96798 85473 5010 53010 96723 95686 82847 74134 86710 98364 97177 97175 69459 30146 97333...
result:
ok q=100000
Test #169:
score: 0
Accepted
time: 1467ms
memory: 21356kb
input:
1000 100000 5 1 14 1 1 17 33 1 40 1 55 1 1 58 59 1 1 61 1 66 70 1 1 71 1 75 76 1 79 1 1 81 90 1 95 1 1 102 1 104 1 109 119 1 130 1 1 131 142 1 144 1 147 1 1 154 158 1 1 161 170 1 178 1 1 182 187 1 189 1 1 211 217 1 1 229 1 233 245 1 248 1 1 249 254 1 256 1 1 257 258 1 271 1 1 273 1 277 286 1 1 287 1...
output:
0 0 10060 56079 17066 17065 66388 57535 68030 84284 99975 99974 99354 90641 81237 98931 99903 86535 86534 98319 99115 99999 56621 66516 66515 99998 99980 98047 86509 57415 98490 98487 98485 43674 91340 77245 77244 77242 71660 92792 39617 99097 98484 34071 34068 78902 47142 47141 47140 96920 99225 44...
result:
ok q=100000
Test #170:
score: 0
Accepted
time: 1061ms
memory: 21376kb
input:
1000 100000 1 5 1 13 1 19 26 1 1 29 34 1 35 1 38 1 39 1 45 1 1 46 1 67 79 1 1 92 94 1 1 97 108 1 1 111 1 120 122 1 1 129 131 1 140 1 1 143 148 1 159 1 1 169 175 1 180 1 185 1 187 1 1 189 1 192 1 195 200 1 205 1 1 208 1 213 1 228 1 232 243 1 244 1 1 245 1 246 1 263 271 1 274 1 1 281 292 1 299 1 301 1...
output:
0 78216 78215 30020 6349 84027 91005 91004 29855 29854 29853 66193 78130 66123 99898 92118 87583 94786 94784 94783 99277 49418 82930 96836 99980 84959 84958 84581 39746 39745 91950 91949 91948 66968 66967 66966 83351 91899 83457 82124 78153 77296 63457 85552 85550 85549 32361 63882 93183 75654 75653...
result:
ok q=100000
Test #171:
score: 0
Accepted
time: 731ms
memory: 21344kb
input:
1000 100000 1 3 4 1 1 5 8 1 1 11 1 21 1 24 1 27 36 1 45 1 1 51 1 74 1 75 79 1 1 80 83 1 1 86 1 93 1 95 98 1 101 1 106 1 109 1 110 1 117 1 127 1 1 130 1 131 1 137 1 141 145 1 1 154 155 1 160 1 1 164 166 1 168 1 169 1 172 1 1 173 174 1 181 1 1 185 1 188 198 1 1 202 1 212 217 1 1 228 230 1 1 234 1 235 ...
output:
0 0 44449 44448 99905 28873 28872 95677 27341 27340 27339 27338 27337 27336 9679 9678 86078 79821 79820 79819 17551 17550 39033 39032 39031 39030 39029 39028 44889 76649 76648 76647 57702 57701 57700 57699 57697 94602 85364 85363 85362 85361 85360 81663 69621 43827 43826 43825 43824 43823 43822 2476...
result:
ok q=100000
Test #172:
score: 0
Accepted
time: 404ms
memory: 21344kb
input:
1000 100000 4 1 1 6 8 1 1 9 12 1 16 1 1 20 1 32 50 1 1 62 70 1 1 72 1 74 1 77 78 1 1 79 1 84 88 1 89 1 94 1 95 1 1 97 107 1 114 1 1 115 126 1 130 1 132 1 1 138 1 144 1 156 1 162 1 163 165 1 178 1 1 181 1 185 1 192 200 1 214 1 1 215 1 218 1 221 1 226 1 232 1 235 1 237 246 1 1 249 1 256 1 269 279 1 28...
output:
0 0 0 0 0 97491 99467 99466 99465 67701 67700 67699 67698 67697 67695 67694 67693 67692 67691 67690 81797 81796 81795 66656 66655 66654 10755 10754 10753 10752 10751 10750 99967 99966 99965 99964 99963 99945 99919 95298 95297 95296 95295 95294 95293 95291 95290 81640 81639 81638 81637 80853 80852 80...
result:
ok q=100000
Test #173:
score: 0
Accepted
time: 106ms
memory: 21356kb
input:
1000 100000 4 1 7 1 10 1 1 11 1 15 19 1 20 1 25 1 1 37 40 1 41 1 1 45 1 49 1 55 62 1 67 1 68 1 1 70 1 84 1 87 98 1 102 1 1 122 1 131 141 1 1 148 149 1 1 150 1 155 1 165 1 171 1 179 183 1 185 1 1 189 191 1 1 193 201 1 1 205 217 1 218 1 219 1 1 237 1 240 1 251 257 1 261 1 268 1 274 1 1 285 286 1 1 289...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #174:
score: 0
Accepted
time: 1141ms
memory: 21600kb
input:
970 100000 2 1 3 1 4 1 5 1 6 1 1 7 1 8 1 9 1 10 1 11 1 12 13 1 14 1 1 15 1 16 1 17 18 1 1 19 1 20 21 1 22 1 1 23 24 1 25 1 26 1 1 27 28 1 1 29 30 1 31 1 32 1 33 1 1 34 35 1 1 36 1 37 1 38 39 1 40 1 1 41 1 42 1 43 44 1 45 1 1 46 47 1 1 48 1 49 1 50 1 51 1 52 53 1 54 1 1 55 1 56 1 57 1 58 59 1 60 1 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #175:
score: 0
Accepted
time: 1658ms
memory: 21808kb
input:
970 100000 1 2 3 1 1 4 1 5 6 1 1 7 8 1 1 9 10 1 1 11 12 1 13 1 1 14 15 1 16 1 17 1 18 1 1 19 1 20 1 21 22 1 23 1 1 24 25 1 26 1 27 1 28 1 1 29 1 30 31 1 1 32 1 33 34 1 1 35 36 1 37 1 38 1 39 1 40 1 41 1 42 1 1 43 44 1 1 45 46 1 1 47 48 1 49 1 1 50 1 51 1 52 1 53 54 1 55 1 1 56 1 57 1 58 1 59 60 1 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #176:
score: 0
Accepted
time: 72ms
memory: 19628kb
input:
970 100000 1 2 1 3 1 4 1 5 6 1 7 1 1 8 9 1 1 10 11 1 1 12 1 13 1 14 15 1 1 16 17 1 1 18 19 1 20 1 21 1 1 22 23 1 1 24 25 1 1 26 1 27 28 1 29 1 30 1 1 31 32 1 1 33 1 34 35 1 36 1 1 37 1 38 1 39 1 40 1 41 42 1 43 1 1 44 45 1 46 1 1 47 48 1 1 49 1 50 51 1 52 1 53 1 54 1 1 55 56 1 1 57 1 58 59 1 1 60 1 ...
output:
969 0 968 0 967 0 966 0 965 0 964 0 963 0 962 0 961 0 960 0 959 0 958 0 957 0 956 0 955 0 954 0 953 0 952 0 951 0 950 0 949 0 948 0 947 0 946 0 945 0 944 0 943 0 942 0 941 0 940 0 939 0 938 0 937 0 936 0 935 0 934 0 933 0 932 0 931 0 930 0 929 0 928 0 927 0 926 0 925 0 924 0 923 0 922 0 921 0 920 0 ...
result:
ok q=100000
Test #177:
score: 0
Accepted
time: 71ms
memory: 19536kb
input:
970 100000 2 1 3 1 4 1 1 5 1 6 1 7 1 8 1 9 10 1 1 11 1 12 13 1 1 14 1 15 16 1 17 1 18 1 1 19 20 1 21 1 1 22 1 23 24 1 25 1 1 26 27 1 28 1 29 1 1 30 1 31 32 1 1 33 34 1 35 1 1 36 1 37 1 38 1 39 40 1 41 1 42 1 1 43 1 44 45 1 46 1 1 47 1 48 49 1 50 1 1 51 52 1 53 1 1 54 55 1 1 56 1 57 58 1 1 59 1 60 61...
output:
0 969 0 968 967 0 0 966 965 964 0 0 963 962 0 961 0 0 960 959 958 957 0 0 956 0 955 0 0 0 0 0 0 954 0 953 952 0 951 950 0 0 949 948 947 946 945 944 0 0 0 0 943 942 941 0 940 939 938 0 937 936 0 0 0 935 934 0 933 0 932 0 931 930 0 929 928 927 0 926 925 924 923 922 921 0 920 0 0 0 0 919 918 917 0 0 91...
result:
ok q=100000
Test #178:
score: 0
Accepted
time: 945ms
memory: 20388kb
input:
970 100000 2 1 3 1 1 5 1 7 1 9 11 1 1 13 15 1 1 17 19 1 1 21 23 1 1 25 1 27 29 1 31 1 1 33 35 1 37 1 39 1 1 41 1 43 1 45 1 47 1 49 51 1 1 53 55 1 1 57 59 1 61 1 63 1 1 65 67 1 1 69 1 71 73 1 75 1 77 1 79 1 1 81 83 1 1 85 1 87 89 1 91 1 93 1 1 95 1 97 1 99 101 1 1 103 1 105 1 107 1 109 1 111 113 1 11...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #179:
score: 0
Accepted
time: 1309ms
memory: 20384kb
input:
970 100000 2 1 1 3 1 5 7 1 1 9 11 1 13 1 1 15 17 1 1 19 1 21 23 1 1 25 27 1 29 1 31 1 1 33 1 35 1 37 1 39 1 41 1 43 1 45 47 1 1 49 1 51 1 53 55 1 57 1 59 1 61 1 63 1 1 65 1 67 1 69 1 71 1 73 1 75 77 1 79 1 1 81 83 1 1 85 87 1 89 1 1 91 1 93 1 95 97 1 99 1 1 101 1 103 1 105 107 1 109 1 111 1 113 1 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #180:
score: 0
Accepted
time: 76ms
memory: 19704kb
input:
970 100000 1 2 3 1 1 5 7 1 9 1 11 1 13 1 15 1 17 1 1 19 21 1 1 23 1 25 1 27 1 29 1 31 33 1 35 1 37 1 1 39 1 41 43 1 1 45 1 47 49 1 51 1 1 53 55 1 57 1 1 59 1 61 1 63 65 1 67 1 1 69 1 71 1 73 1 75 1 77 79 1 1 81 1 83 1 85 1 87 89 1 1 91 93 1 95 1 97 1 1 99 1 101 103 1 105 1 107 1 1 109 111 1 1 113 1 ...
output:
1 0 969 0 968 0 967 485 484 0 483 482 481 480 479 0 966 478 477 476 965 475 474 473 472 471 470 0 964 0 469 0 963 468 467 466 962 0 465 464 463 462 961 461 960 0 460 459 458 0 959 457 456 455 958 0 454 453 452 451 957 450 449 0 448 0 956 447 955 0 954 0 446 0 445 444 443 442 441 440 953 0 439 438 95...
result:
ok q=100000
Test #181:
score: 0
Accepted
time: 69ms
memory: 19556kb
input:
970 100000 2 1 3 1 5 1 1 7 9 1 11 1 1 13 15 1 1 17 19 1 21 1 23 1 1 25 1 27 29 1 1 31 1 33 1 35 1 37 39 1 41 1 1 43 45 1 1 47 1 49 51 1 53 1 1 55 1 57 59 1 1 61 63 1 1 65 67 1 69 1 71 1 73 1 75 1 1 77 1 79 1 81 83 1 1 85 87 1 89 1 1 91 1 93 95 1 1 97 1 99 1 101 103 1 105 1 107 1 1 109 111 1 113 1 11...
output:
0 485 484 483 482 481 1 480 479 478 477 476 475 474 0 0 0 0 969 968 0 0 473 0 472 0 967 471 470 469 966 0 468 467 466 965 0 465 464 463 462 461 964 963 962 0 0 0 460 0 459 458 0 0 457 0 0 0 0 0 961 456 455 0 0 0 960 0 0 0 0 959 958 957 956 955 954 953 952 0 0 454 0 951 453 950 949 0 0 948 947 946 94...
result:
ok q=100000
Test #182:
score: 0
Accepted
time: 917ms
memory: 20088kb
input:
970 100000 1 3 4 1 1 10 1 13 16 1 19 1 22 1 1 25 28 1 1 31 34 1 40 1 43 1 58 1 61 1 1 64 70 1 73 1 76 1 82 1 85 1 1 91 94 1 1 100 1 103 1 109 1 112 115 1 118 1 1 127 1 130 1 133 136 1 1 139 142 1 157 1 1 160 1 163 1 166 1 178 1 184 1 187 1 190 193 1 1 196 199 1 1 205 208 1 217 1 1 220 223 1 226 1 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #183:
score: 0
Accepted
time: 1048ms
memory: 19976kb
input:
970 100000 2 1 10 1 13 1 16 1 22 1 25 1 1 28 31 1 1 34 1 37 40 1 1 46 49 1 55 1 70 1 1 76 1 79 1 82 85 1 1 88 106 1 1 109 1 112 1 115 1 118 124 1 127 1 130 1 1 136 1 139 1 145 1 154 1 157 1 160 163 1 166 1 1 172 1 175 181 1 184 1 193 1 1 196 1 208 211 1 214 1 220 1 223 1 229 1 232 1 1 235 1 238 247 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #184:
score: 0
Accepted
time: 66ms
memory: 19580kb
input:
970 100000 3 1 4 1 1 7 10 1 13 1 16 1 19 1 1 22 1 25 1 28 37 1 1 40 43 1 46 1 1 49 52 1 1 55 1 58 1 64 1 67 1 70 73 1 76 1 79 1 1 85 91 1 94 1 97 1 106 1 1 109 1 112 115 1 1 118 1 124 127 1 133 1 139 1 1 142 1 148 1 154 157 1 160 1 1 163 166 1 169 1 172 1 175 1 181 1 1 184 187 1 1 190 1 193 199 1 1 ...
output:
616 0 409 0 408 0 615 209 481 0 208 407 618 210 360 207 212 617 205 1 614 0 206 410 204 406 203 405 611 609 202 404 200 0 199 0 198 619 196 0 195 403 193 610 606 0 402 0 401 0 397 192 605 191 189 393 390 188 389 187 186 0 396 607 185 183 601 600 599 190 182 392 180 0 179 604 387 386 384 0 178 388 59...
result:
ok q=100000
Test #185:
score: 0
Accepted
time: 73ms
memory: 19584kb
input:
970 100000 1 2 1 4 1 7 10 1 1 13 16 1 1 19 1 22 1 25 28 1 1 37 49 1 1 52 1 55 1 67 1 70 1 73 79 1 85 1 1 88 1 91 1 94 1 97 1 100 103 1 1 106 112 1 118 1 124 1 1 133 1 136 139 1 142 1 145 1 1 154 160 1 1 163 1 172 1 175 178 1 181 1 184 1 193 1 1 196 199 1 1 205 208 1 211 1 1 220 223 1 232 1 1 235 238...
output:
412 411 407 406 404 403 399 210 209 208 207 610 609 1 603 601 0 0 0 206 599 597 596 595 409 408 405 0 0 204 202 410 402 401 611 607 606 604 600 594 593 400 592 590 589 0 397 588 587 586 580 578 577 201 394 393 392 389 387 385 575 384 381 0 200 386 199 198 197 382 574 573 196 194 192 572 570 569 568 ...
result:
ok q=100000
Test #186:
score: 0
Accepted
time: 717ms
memory: 19924kb
input:
970 100000 3 1 5 1 1 9 13 1 17 1 21 1 29 1 1 33 1 37 1 41 1 49 53 1 57 1 69 1 1 73 1 77 1 81 85 1 1 89 93 1 97 1 1 101 1 105 1 117 121 1 125 1 1 129 133 1 137 1 141 1 1 145 1 149 153 1 157 1 1 161 169 1 1 173 1 181 185 1 189 1 193 1 1 197 201 1 209 1 213 1 217 1 1 221 225 1 229 1 1 233 241 1 1 245 2...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #187:
score: 0
Accepted
time: 916ms
memory: 19936kb
input:
970 100000 1 3 1 4 5 1 9 1 13 1 17 1 1 21 25 1 29 1 33 1 1 37 1 49 1 53 1 57 61 1 65 1 69 1 1 73 81 1 1 85 89 1 1 105 1 113 1 117 1 121 1 125 129 1 133 1 1 137 141 1 1 145 149 1 153 1 1 157 1 161 1 165 1 189 1 193 197 1 201 1 1 205 209 1 1 213 1 217 221 1 225 1 229 1 237 1 1 241 1 245 1 249 1 253 26...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #188:
score: 0
Accepted
time: 80ms
memory: 19484kb
input:
970 100000 2 1 1 3 4 1 1 5 1 9 1 13 17 1 1 21 1 25 33 1 1 37 41 1 1 45 49 1 57 1 61 1 1 65 69 1 1 73 81 1 1 85 1 89 1 97 1 101 105 1 1 113 1 117 1 121 125 1 1 129 133 1 137 1 1 141 149 1 153 1 1 157 1 161 1 165 169 1 1 173 1 177 1 181 185 1 189 1 197 1 1 201 205 1 1 209 1 213 217 1 1 221 1 229 233 1...
output:
207 0 834 0 206 626 420 835 3 2 469 0 625 832 831 419 830 211 624 623 210 0 833 209 415 1 205 622 621 202 619 201 618 414 413 617 616 826 418 825 208 824 416 410 204 615 614 819 613 611 609 417 608 199 411 817 816 815 198 0 200 412 409 0 408 612 821 814 812 407 607 606 811 810 604 197 823 405 809 19...
result:
ok q=100000
Test #189:
score: 0
Accepted
time: 63ms
memory: 19564kb
input:
970 100000 2 1 1 3 4 1 1 5 1 9 13 1 1 17 1 21 1 33 1 37 1 41 45 1 49 1 53 1 57 1 1 61 1 65 1 69 73 1 1 77 1 81 85 1 1 89 1 93 97 1 1 101 105 1 1 109 1 117 1 121 125 1 1 129 137 1 1 141 145 1 1 149 1 153 161 1 1 169 1 173 1 177 181 1 1 185 1 189 1 193 197 1 1 201 205 1 1 209 213 1 217 1 1 229 233 1 2...
output:
832 208 205 203 623 3 634 648 209 207 206 204 422 421 625 828 826 824 2 201 198 196 195 620 617 616 192 190 189 188 187 614 831 825 823 626 618 821 820 613 420 419 418 416 624 819 415 414 413 412 615 612 817 608 816 606 605 814 604 417 411 410 409 408 813 812 407 811 807 806 804 803 801 405 603 602 ...
result:
ok q=100000
Test #190:
score: 0
Accepted
time: 669ms
memory: 19008kb
input:
970 93610 1 3 1 4 1 6 1 11 16 1 21 1 1 26 1 31 36 1 1 41 46 1 1 51 56 1 1 61 1 66 1 71 76 1 81 1 86 1 1 91 96 1 101 1 106 1 1 111 1 116 121 1 126 1 1 131 136 1 141 1 1 146 1 151 1 156 161 1 1 166 171 1 176 1 181 1 186 1 1 191 1 196 1 201 1 206 211 1 216 1 1 221 1 226 1 231 236 1 241 1 246 1 1 251 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #191:
score: 0
Accepted
time: 938ms
memory: 18868kb
input:
970 93610 5 1 6 1 1 11 16 1 1 21 26 1 1 31 36 1 41 1 46 1 1 51 56 1 1 61 1 66 1 71 1 76 81 1 86 1 1 91 96 1 1 101 106 1 1 111 1 116 121 1 1 126 1 131 1 136 1 141 146 1 1 151 1 156 161 1 1 166 1 171 176 1 1 181 1 186 1 191 196 1 1 201 1 206 1 211 1 216 1 221 226 1 1 231 236 1 1 241 1 246 1 251 1 256 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 196 584 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #192:
score: 0
Accepted
time: 60ms
memory: 18564kb
input:
970 93610 1 2 1 3 4 1 1 5 6 1 1 11 16 1 21 1 1 26 1 31 1 36 41 1 46 1 1 51 1 56 61 1 1 66 1 71 76 1 1 81 86 1 1 91 1 96 1 101 106 1 111 1 116 1 121 1 1 126 1 131 1 136 141 1 146 1 1 151 156 1 1 161 1 166 171 1 1 176 1 181 186 1 1 191 196 1 201 1 1 206 1 211 1 216 1 221 1 226 231 1 1 236 1 241 246 1 ...
output:
584 197 2 195 777 970 389 4 3 383 194 1 581 377 193 374 191 198 967 965 190 189 188 582 774 773 186 771 969 968 580 192 370 369 185 770 769 385 378 368 776 184 179 178 388 962 960 959 177 964 390 768 579 578 765 176 174 386 763 761 963 0 384 961 382 0 183 958 957 381 574 760 573 572 772 759 379 171 ...
result:
ok q=100000
Test #193:
score: 0
Accepted
time: 70ms
memory: 18500kb
input:
970 93610 1 3 1 6 1 11 1 16 21 1 26 1 1 31 36 1 41 1 46 1 51 1 1 56 61 1 66 1 1 71 1 76 81 1 1 86 91 1 96 1 1 101 106 1 1 111 116 1 1 121 1 126 1 131 1 136 141 1 146 1 151 1 156 1 1 161 166 1 1 171 1 176 1 181 1 186 1 191 1 196 201 1 1 206 1 211 216 1 221 1 226 1 231 1 1 236 1 241 1 246 1 251 1 256 ...
output:
389 194 192 191 190 188 185 584 1 581 380 264 266 234 0 0 0 0 579 578 777 776 774 773 772 388 771 390 769 0 0 193 189 187 768 766 765 763 576 575 573 571 386 970 968 966 964 196 961 960 957 956 182 385 574 762 758 757 756 755 963 384 383 381 379 375 374 967 179 171 163 162 161 160 158 572 582 958 17...
result:
ok q=100000
Test #194:
score: 0
Accepted
time: 545ms
memory: 16176kb
input:
970 77288 1 2 3 1 1 4 5 1 1 7 13 1 1 19 1 25 31 1 37 1 43 1 1 49 1 55 61 1 1 67 1 73 1 79 1 85 91 1 97 1 103 1 1 109 115 1 121 1 1 127 133 1 139 1 1 145 1 151 1 157 1 163 169 1 175 1 181 1 187 1 193 1 199 1 205 1 1 211 217 1 1 223 1 229 1 235 241 1 1 247 253 1 259 1 1 265 271 1 1 277 1 283 289 1 1 2...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 165 487 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #195:
score: 0
Accepted
time: 643ms
memory: 16264kb
input:
970 77288 1 2 5 1 1 6 7 1 13 1 19 1 1 25 31 1 37 1 43 1 49 1 55 1 61 1 1 67 1 73 1 79 1 85 91 1 1 97 103 1 109 1 115 1 1 121 127 1 1 133 139 1 145 1 151 1 157 1 1 163 1 169 175 1 1 181 1 187 1 193 199 1 1 205 1 211 1 217 223 1 1 229 235 1 1 241 1 247 253 1 1 259 1 265 1 271 1 283 289 1 295 1 301 1 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 164 327 326 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 487 2 0 0 0 0 0 0 165 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #196:
score: 0
Accepted
time: 44ms
memory: 15988kb
input:
970 77288 2 1 1 5 1 6 1 7 1 13 1 19 1 25 1 31 37 1 43 1 1 49 1 55 61 1 67 1 73 1 79 1 1 85 91 1 97 1 103 1 109 1 1 115 1 121 127 1 133 1 139 1 145 1 1 151 157 1 1 163 169 1 175 1 1 181 187 1 1 193 199 1 1 205 1 211 1 217 223 1 229 1 235 1 1 241 247 1 253 1 1 259 265 1 271 1 277 1 1 283 1 289 295 1 3...
output:
485 326 164 805 646 325 327 165 483 324 774 481 694 0 647 965 163 964 480 963 962 323 807 166 476 162 3 322 1 321 475 961 960 161 320 474 472 806 804 800 160 317 316 959 642 487 315 313 958 157 957 956 158 156 2 645 153 954 803 799 953 797 152 795 643 312 311 310 641 159 798 794 479 309 951 638 637 ...
result:
ok q=100000
Test #197:
score: 0
Accepted
time: 50ms
memory: 16112kb
input:
970 77288 2 1 1 4 1 5 1 7 13 1 1 25 31 1 37 1 43 1 1 49 1 55 61 1 67 1 73 1 1 79 1 85 1 91 97 1 1 103 1 109 1 115 121 1 127 1 1 133 1 139 1 145 1 151 1 157 163 1 169 1 175 1 1 181 1 187 193 1 199 1 1 205 211 1 1 217 223 1 229 1 235 1 1 241 1 247 1 253 1 259 1 265 1 271 1 277 283 1 1 289 295 1 301 1 ...
output:
160 156 319 318 1 317 315 480 159 161 961 155 151 150 148 147 144 143 478 477 476 475 474 801 800 799 797 0 0 643 642 802 795 794 793 316 313 157 2 641 639 635 3 632 482 653 481 473 472 471 470 469 154 149 145 141 960 958 956 953 951 467 466 465 464 463 460 798 314 312 311 631 630 627 626 624 483 62...
result:
ok q=100000
Test #198:
score: 0
Accepted
time: 435ms
memory: 14396kb
input:
970 66182 2 1 1 3 4 1 1 6 7 1 1 8 15 1 1 22 1 29 36 1 43 1 50 1 1 57 1 64 1 71 1 85 1 92 99 1 1 106 113 1 1 120 1 127 1 134 1 141 148 1 155 1 162 1 1 169 1 176 1 183 190 1 1 197 204 1 1 218 225 1 232 1 239 1 246 1 1 253 1 260 1 267 1 274 281 1 1 288 1 295 302 1 1 309 316 1 323 1 1 330 337 1 1 344 1 ...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 140 557 0 0 0 0 0 141 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #199:
score: 0
Accepted
time: 543ms
memory: 14468kb
input:
970 66182 1 4 5 1 1 6 7 1 8 1 15 1 1 22 29 1 36 1 43 1 1 50 1 57 1 64 71 1 1 78 1 85 92 1 1 99 1 106 1 113 1 120 127 1 134 1 1 141 1 148 1 155 162 1 1 169 1 176 183 1 1 190 197 1 1 204 211 1 1 218 1 225 232 1 239 1 246 1 253 1 260 1 267 1 274 1 281 1 288 1 295 1 1 302 309 1 1 316 1 323 330 1 337 1 3...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 560 2 14...
result:
ok q=100000
Test #200:
score: 0
Accepted
time: 40ms
memory: 14208kb
input:
970 66182 1 2 1 5 1 7 8 1 1 15 22 1 1 29 1 36 43 1 1 57 64 1 1 71 1 78 85 1 1 92 1 99 106 1 1 113 1 120 1 127 134 1 141 1 148 1 155 1 1 162 1 169 1 176 1 183 1 190 197 1 204 1 211 1 1 218 225 1 232 1 1 239 1 246 253 1 260 1 267 1 274 1 281 1 1 288 295 1 1 302 1 309 316 1 1 323 1 330 1 337 344 1 351 ...
output:
416 969 831 966 695 964 139 557 693 278 3 692 2 832 556 277 555 417 276 415 965 962 275 960 414 279 558 554 138 419 413 412 553 549 272 690 140 1 968 956 552 551 271 411 409 270 267 955 954 953 952 137 951 274 136 687 685 408 407 830 829 824 280 691 550 548 959 133 132 547 406 822 405 404 546 820 81...
result:
ok q=100000
Test #201:
score: 0
Accepted
time: 38ms
memory: 14232kb
input:
970 66182 4 1 1 5 6 1 1 8 15 1 1 22 1 29 1 36 43 1 1 50 1 57 1 64 1 71 78 1 85 1 92 1 1 99 106 1 1 113 120 1 1 127 134 1 1 141 148 1 155 1 162 1 169 1 1 176 183 1 1 190 197 1 204 1 1 211 1 218 225 1 232 1 1 239 1 246 1 253 1 260 267 1 274 1 1 281 288 1 295 1 302 1 309 1 316 1 323 1 330 1 337 1 344 1...
output:
0 416 694 139 138 134 133 132 126 124 122 121 965 964 829 825 279 278 282 693 690 687 684 142 683 2 140 554 417 553 550 548 963 415 413 418 144 830 281 137 136 135 130 128 127 123 120 962 961 556 691 557 689 414 828 412 118 411 410 688 686 966 960 408 406 404 401 959 958 129 119 399 827 824 823 822 ...
result:
ok q=100000
Test #202:
score: 0
Accepted
time: 342ms
memory: 13084kb
input:
970 58094 3 1 1 4 1 5 1 7 8 1 1 9 17 1 1 25 33 1 1 41 49 1 1 57 1 65 73 1 81 1 1 89 97 1 105 1 113 1 1 121 1 129 137 1 145 1 153 1 161 1 169 1 1 177 1 185 193 1 1 201 1 209 1 217 1 225 233 1 1 241 249 1 1 257 265 1 273 1 1 281 1 289 297 1 1 305 1 313 321 1 329 1 1 337 1 345 1 353 1 361 369 1 1 377 1...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 610 248 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #203:
score: 0
Accepted
time: 436ms
memory: 13056kb
input:
970 58094 3 1 5 1 1 9 17 1 25 1 33 1 1 41 49 1 57 1 1 65 1 73 1 81 1 89 1 97 105 1 1 113 121 1 1 129 137 1 1 145 1 153 1 161 1 169 1 177 1 185 193 1 1 201 209 1 217 1 225 1 233 1 1 241 1 249 1 257 1 265 1 273 1 281 289 1 297 1 305 1 313 1 1 321 329 1 1 337 1 345 353 1 1 361 1 369 1 377 1 385 1 393 4...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 493 371 249 125 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 494 248 124 0 0 0 0 0 0 0 ...
result:
ok q=100000
Test #204:
score: 0
Accepted
time: 37ms
memory: 13044kb
input:
970 58094 2 1 5 1 1 6 7 1 1 8 1 9 17 1 25 1 1 33 41 1 1 49 1 57 1 65 1 73 1 81 89 1 97 1 1 105 113 1 1 121 1 129 137 1 1 145 1 153 1 161 1 169 1 177 1 185 193 1 1 201 209 1 217 1 1 225 233 1 241 1 1 249 257 1 265 1 273 1 1 281 1 289 297 1 305 1 1 313 321 1 329 1 337 1 345 1 1 353 1 361 369 1 377 1 1...
output:
125 367 730 3 491 249 611 851 845 248 247 968 490 484 127 610 608 731 250 607 488 483 126 609 729 604 124 243 365 1 971 970 251 123 128 481 480 728 122 366 364 363 121 478 603 602 361 2 850 848 847 246 120 118 117 4 606 241 969 727 725 597 596 594 593 116 489 5 477 242 846 371 368 357 370 119 844 11...
result:
ok q=100000
Test #205:
score: 0
Accepted
time: 32ms
memory: 12956kb
input:
970 58094 4 1 5 1 7 1 8 1 9 1 1 17 1 25 33 1 41 1 1 49 1 57 1 65 1 73 81 1 89 1 1 97 1 105 113 1 121 1 129 1 1 137 1 145 153 1 1 161 1 169 1 177 1 185 1 193 201 1 209 1 217 1 225 1 233 1 241 1 249 1 257 1 265 1 1 273 1 281 1 289 297 1 1 305 313 1 1 321 1 329 1 337 1 345 1 353 1 361 1 369 377 1 385 1...
output:
0 248 0 968 965 960 957 614 610 608 491 490 489 488 486 482 481 375 374 369 368 480 479 477 252 367 365 362 361 851 850 849 846 843 842 841 840 839 970 730 969 967 964 119 115 113 611 370 366 360 359 251 241 254 130 492 484 478 373 731 253 357 728 727 726 723 129 358 2 354 1 125 124 966 963 956 952 ...
result:
ok q=100000
Extra Test:
score: 0
Extra Test Passed