QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#262745#7740. Puzzle: Question Markucup-team1727#AC ✓299ms19640kbC++205.8kb2023-11-23 22:50:112023-11-23 22:50:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
4

output:

2
0 2 2
1 1 2
1 2 1
4
1 1 2 2
1 2 1 2
3 3 4 4
3 4 3 4

result:

ok Correct. (2 test cases)

Test #2:

score: 0
Accepted
time: 276ms
memory: 6452kb

input:

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

output:

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 279ms
memory: 6800kb

input:

64
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310

output:

15252
249 249 250 250 253 253 254 254 257 257 258 258 261 261 262 262 265 265 266 266 269 269 270 270 273 273 274 274 277 277 278 278 281 281 282 282 285 285 286 286 289 289 290 290 293 293 294 294 297 297 298 298 301 301 302 302 305 305 306 306 309 309 310 310 313 313 314 314 317 317 318 318 321 32...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 276ms
memory: 6704kb

input:

45
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355

output:

24180
313 313 314 314 317 317 318 318 321 321 322 322 325 325 326 326 329 329 330 330 333 333 334 334 337 337 338 338 341 341 342 342 345 345 346 346 349 349 350 350 353 353 354 354 357 357 358 358 361 361 362 362 365 365 366 366 369 369 370 370 373 373 374 374 377 377 378 378 381 381 382 382 385 38...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 266ms
memory: 7192kb

input:

35
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390

output:

31684
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...

result:

ok Correct. (35 test cases)

Test #6:

score: 0
Accepted
time: 272ms
memory: 7332kb

input:

30
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420

output:

38220
393 393 394 394 397 397 398 398 401 401 402 402 405 405 406 406 409 409 410 410 413 413 414 414 417 417 418 418 421 421 422 422 425 425 426 426 429 429 430 430 433 433 434 434 437 437 438 438 441 441 442 442 445 445 446 446 449 449 450 450 453 453 454 454 457 457 458 458 461 461 462 462 465 46...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 282ms
memory: 19520kb

input:

2
2000
1000

output:

1000000
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...

result:

ok Correct. (2 test cases)

Test #8:

score: 0
Accepted
time: 270ms
memory: 19580kb

input:

2
1999
999

output:

999000
2001 2001 2002 2002 2005 2005 2006 2006 2009 2009 2010 2010 2013 2013 2014 2014 2017 2017 2018 2018 2021 2021 2022 2022 2025 2025 2026 2026 2029 2029 2030 2030 2033 2033 2034 2034 2037 2037 2038 2038 2041 2041 2042 2042 2045 2045 2046 2046 2049 2049 2050 2050 2053 2053 2054 2054 2057 2057 205...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 276ms
memory: 19572kb

input:

2
1998
998

output:

998000
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...

result:

ok Correct. (2 test cases)

Test #10:

score: 0
Accepted
time: 277ms
memory: 19640kb

input:

2
1997
997

output:

997002
3 3 4 4 7 7 8 8 11 11 12 12 15 15 16 16 19 19 20 20 23 23 24 24 27 27 28 28 31 31 32 32 35 35 36 36 39 39 40 40 43 43 44 44 47 47 48 48 51 51 52 52 55 55 56 56 59 59 60 60 63 63 64 64 67 67 68 68 71 71 72 72 75 75 76 76 79 79 80 80 83 83 84 84 87 87 88 88 91 91 92 92 95 95 96 96 99 99 100 100...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 299ms
memory: 19560kb

input:

2
1996
996

output:

996004
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...

result:

ok Correct. (2 test cases)

Test #12:

score: 0
Accepted
time: 284ms
memory: 19468kb

input:

2
1995
995

output:

995006
1997 1997 1998 1998 2001 2001 2002 2002 2005 2005 2006 2006 2009 2009 2010 2010 2013 2013 2014 2014 2017 2017 2018 2018 2021 2021 2022 2022 2025 2025 2026 2026 2029 2029 2030 2030 2033 2033 2034 2034 2037 2037 2038 2038 2041 2041 2042 2042 2045 2045 2046 2046 2049 2049 2050 2050 2053 2053 205...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 283ms
memory: 19472kb

input:

2
1994
994

output:

994008
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...

result:

ok Correct. (2 test cases)

Test #14:

score: 0
Accepted
time: 287ms
memory: 19536kb

input:

2
1993
993

output:

993012
3 3 4 4 7 7 8 8 11 11 12 12 15 15 16 16 19 19 20 20 23 23 24 24 27 27 28 28 31 31 32 32 35 35 36 36 39 39 40 40 43 43 44 44 47 47 48 48 51 51 52 52 55 55 56 56 59 59 60 60 63 63 64 64 67 67 68 68 71 71 72 72 75 75 76 76 79 79 80 80 83 83 84 84 87 87 88 88 91 91 92 92 95 95 96 96 99 99 100 100...

result:

ok Correct. (2 test cases)

Test #15:

score: 0
Accepted
time: 295ms
memory: 19508kb

input:

2
1992
992

output:

992016
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52...

result:

ok Correct. (2 test cases)

Test #16:

score: 0
Accepted
time: 275ms
memory: 19588kb

input:

2
1991
991

output:

991020
1993 1993 1994 1994 1997 1997 1998 1998 2001 2001 2002 2002 2005 2005 2006 2006 2009 2009 2010 2010 2013 2013 2014 2014 2017 2017 2018 2018 2021 2021 2022 2022 2025 2025 2026 2026 2029 2029 2030 2030 2033 2033 2034 2034 2037 2037 2038 2038 2041 2041 2042 2042 2045 2045 2046 2046 2049 2049 205...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed