QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#302610#7740. Puzzle: Question Markucup-team150AC ✓232ms19168kbC++233.5kb2024-01-11 00:22:232024-01-11 00:22:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
4

output:

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

result:

ok Correct. (2 test cases)

Test #2:

score: 0
Accepted
time: 208ms
memory: 4120kb

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
1 1 2 
1 2 1 
0 2 2 
4
3 4 3 4 
3 3 4 4 
1 2 1 2 
1 1 2 2 
5
3 4 3 4 0 
3 3 4 4 0 
2 2 0 0 5 
1 2 1 5 0 
2 1 1 5 5 
8
5 6 5 6 0 0 
5 5 6 6 0 0 
3 4 3 4 8 8 
3 3 4 4 8 7 
1 2 1 2 7 8 
1 1 2 2 7 7 
11
1 2 1 2 5 5 6 
1 1 2 2 5 6 5 
9 10 9 10 0 6 6 
9 9 10 10 0 4 4 
8 8 0 0 11 4 3 
7 ...

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 219ms
memory: 4184kb

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
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101 ...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 209ms
memory: 3828kb

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
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101 ...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 212ms
memory: 3896kb

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
31507 31508 31507 31508 31509 31510 31509 31510 31511 31512 31511 31512 31513 31514 31513 31514 31515 31516 31515 31516 31517 31518 31517 31518 31519 31520 31519 31520 31521 31522 31521 31522 31523 31524 31523 31524 31525 31526 31525 31526 31527 31528 31527 31528 31529 31530 31529 31530 31531 ...

result:

ok Correct. (35 test cases)

Test #6:

score: 0
Accepted
time: 204ms
memory: 3996kb

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
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101 ...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 216ms
memory: 18968kb

input:

2
2000
1000

output:

1000000
999001 999002 999001 999002 999003 999004 999003 999004 999005 999006 999005 999006 999007 999008 999007 999008 999009 999010 999009 999010 999011 999012 999011 999012 999013 999014 999013 999014 999015 999016 999015 999016 999017 999018 999017 999018 999019 999020 999019 999020 999021 99902...

result:

ok Correct. (2 test cases)

Test #8:

score: 0
Accepted
time: 232ms
memory: 19168kb

input:

2
1999
999

output:

999000
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 218ms
memory: 18952kb

input:

2
1998
998

output:

998000
996005 996006 996005 996006 996007 996008 996007 996008 996009 996010 996009 996010 996011 996012 996011 996012 996013 996014 996013 996014 996015 996016 996015 996016 996017 996018 996017 996018 996019 996020 996019 996020 996021 996022 996021 996022 996023 996024 996023 996024 996025 996026...

result:

ok Correct. (2 test cases)

Test #10:

score: 0
Accepted
time: 214ms
memory: 18916kb

input:

2
1997
997

output:

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

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 222ms
memory: 18932kb

input:

2
1996
996

output:

996004
995007 995008 995007 995008 995009 995010 995009 995010 995011 995012 995011 995012 995013 995014 995013 995014 995015 995016 995015 995016 995017 995018 995017 995018 995019 995020 995019 995020 995021 995022 995021 995022 995023 995024 995023 995024 995025 995026 995025 995026 995027 995028...

result:

ok Correct. (2 test cases)

Test #12:

score: 0
Accepted
time: 215ms
memory: 18896kb

input:

2
1995
995

output:

995006
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 223ms
memory: 18864kb

input:

2
1994
994

output:

994008
992017 992018 992017 992018 992019 992020 992019 992020 992021 992022 992021 992022 992023 992024 992023 992024 992025 992026 992025 992026 992027 992028 992027 992028 992029 992030 992029 992030 992031 992032 992031 992032 992033 992034 992033 992034 992035 992036 992035 992036 992037 992038...

result:

ok Correct. (2 test cases)

Test #14:

score: 0
Accepted
time: 202ms
memory: 18892kb

input:

2
1993
993

output:

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

result:

ok Correct. (2 test cases)

Test #15:

score: 0
Accepted
time: 208ms
memory: 18896kb

input:

2
1992
992

output:

992016
991021 991022 991021 991022 991023 991024 991023 991024 991025 991026 991025 991026 991027 991028 991027 991028 991029 991030 991029 991030 991031 991032 991031 991032 991033 991034 991033 991034 991035 991036 991035 991036 991037 991038 991037 991038 991039 991040 991039 991040 991041 991042...

result:

ok Correct. (2 test cases)

Test #16:

score: 0
Accepted
time: 228ms
memory: 18864kb

input:

2
1991
991

output:

991020
1 2 1 2 5 6 5 6 9 10 9 10 13 14 13 14 17 18 17 18 21 22 21 22 25 26 25 26 29 30 29 30 33 34 33 34 37 38 37 38 41 42 41 42 45 46 45 46 49 50 49 50 53 54 53 54 57 58 57 58 61 62 61 62 65 66 65 66 69 70 69 70 73 74 73 74 77 78 77 78 81 82 81 82 85 86 85 86 89 90 89 90 93 94 93 94 97 98 97 98 101...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed