QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#270332#7740. Puzzle: Question Markucup-team1195AC ✓215ms34924kbC++208.1kb2023-11-30 19:08:372023-11-30 19:08:38

詳細信息

Test #1:

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

input:

2
3
4

output:

2
1 1 2
1 2 1
0 2 2
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: 182ms
memory: 8044kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 194ms
memory: 8164kb

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
15197 15197 15198 15199 15199 15207 15207 15208 15211 15211 15214 15214 15215 15215 15216 15167 15167 15168 15168 15169 15169 15170 15170 15075 15075 15076 15076 15077 15077 15078 15078 14951 14951 14952 14952 14953 14953 14954 14954 14795 14795 14796 14796 14797 14797 14798 14798 14607 14607 ...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 197ms
memory: 10068kb

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
24125 24125 24126 24127 24127 24135 24135 24136 24139 24139 24142 24142 24143 24143 24144 24095 24095 24096 24096 24097 24097 24098 24098 24003 24003 24004 24004 24005 24005 24006 24006 23879 23879 23880 23880 23881 23881 23882 23882 23723 23723 23724 23724 23725 23725 23726 23726 23535 23535 ...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 184ms
memory: 10172kb

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

result:

ok Correct. (35 test cases)

Test #6:

score: 0
Accepted
time: 191ms
memory: 10408kb

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
38165 38165 38166 38167 38167 38175 38175 38176 38179 38179 38182 38182 38183 38183 38184 38135 38135 38136 38136 38137 38137 38138 38138 38043 38043 38044 38044 38045 38045 38046 38046 37919 37919 37920 37920 37921 37921 37922 37922 37763 37763 37764 37764 37765 37765 37766 37766 37575 37575 ...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 194ms
memory: 34672kb

input:

2
2000
1000

output:

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

result:

ok Correct. (2 test cases)

Test #8:

score: 0
Accepted
time: 203ms
memory: 34924kb

input:

2
1999
999

output:

999000
998945 998945 998946 998947 998947 998955 998955 998956 998959 998959 998962 998962 998963 998963 998964 998915 998915 998916 998916 998917 998917 998918 998918 998823 998823 998824 998824 998825 998825 998826 998826 998699 998699 998700 998700 998701 998701 998702 998702 998543 998543 998544...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 211ms
memory: 34636kb

input:

2
1998
998

output:

998000
0 0 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 5...

result:

ok Correct. (2 test cases)

Test #10:

score: 0
Accepted
time: 207ms
memory: 34724kb

input:

2
1997
997

output:

997002
996976 996975 996975 996974 996974 996971 996971 997000 996999 997000 996996 996995 996996 996935 996935 996936 996936 996937 996937 996938 996938 996851 996851 996852 996852 996853 996853 996854 996854 996735 996735 996736 996736 996737 996737 996738 996738 996587 996587 996588 996588 996589...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 199ms
memory: 34700kb

input:

2
1996
996

output:

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

result:

ok Correct. (2 test cases)

Test #12:

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

input:

2
1995
995

output:

995006
994977 994978 994978 994979 994979 994980 994980 994981 994981 994997 994997 994955 994955 994956 994956 994957 994957 994958 994958 994879 994879 994880 994880 994881 994881 994882 994882 994771 994771 994772 994772 994773 994773 994774 994774 994631 994631 994632 994632 994633 994633 994634...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 203ms
memory: 34660kb

input:

2
1994
994

output:

994008
0 0 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 5...

result:

ok Correct. (2 test cases)

Test #14:

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

input:

2
1993
993

output:

993012
992993 992994 992994 992995 992995 992996 992996 992997 992997 992975 992975 992976 992976 992977 992977 992978 992978 992907 992907 992908 992908 992909 992909 992910 992910 992807 992807 992808 992808 992809 992809 992810 992810 992675 992675 992676 992676 992677 992677 992678 992678 992511...

result:

ok Correct. (2 test cases)

Test #15:

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

input:

2
1992
992

output:

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

result:

ok Correct. (2 test cases)

Test #16:

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

input:

2
1991
991

output:

991020
990965 990965 990966 990967 990967 990975 990975 990976 990979 990979 990982 990982 990983 990983 990984 990935 990935 990936 990936 990937 990937 990938 990938 990843 990843 990844 990844 990845 990845 990846 990846 990719 990719 990720 990720 990721 990721 990722 990722 990563 990563 990564...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed