QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#263221#7740. Puzzle: Question Markucup-team2304#AC ✓124ms19216kbC++144.6kb2023-11-24 17:02:132023-11-24 17:02:14

详细

Test #1:

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

input:

2
3
4

output:

2
0 1 1
2 1 2
2 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: 67ms
memory: 5652kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 71ms
memory: 6044kb

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
0 14965 14965 14966 14966 14979 14979 14980 14980 14981 14981 14982 14982 14897 14897 14898 14898 14901 14901 14902 14902 14797 14797 14798 14798 14801 14801 14802 14802 14665 14665 14666 14666 14669 14669 14670 14670 14501 14501 14502 14502 14505 14505 14506 14506 14305 14305 14306 14306 1430...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 75ms
memory: 8080kb

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
0 23829 23829 23830 23830 23843 23843 23844 23844 23845 23845 23846 23846 23761 23761 23762 23762 23765 23765 23766 23766 23661 23661 23662 23662 23665 23665 23666 23666 23529 23529 23530 23530 23533 23533 23534 23534 23365 23365 23366 23366 23369 23369 23370 23370 23169 23169 23170 23170 2317...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 75ms
memory: 6712kb

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: 80ms
memory: 8012kb

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
0 37789 37789 37790 37790 37803 37803 37804 37804 37805 37805 37806 37806 37721 37721 37722 37722 37725 37725 37726 37726 37621 37621 37622 37622 37625 37625 37626 37626 37489 37489 37490 37490 37493 37493 37494 37494 37325 37325 37326 37326 37329 37329 37330 37330 37129 37129 37130 37130 3713...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 96ms
memory: 19216kb

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: 99ms
memory: 19036kb

input:

2
1999
999

output:

999000
0 996961 996961 996962 996962 996975 996975 996976 996976 996977 996977 996978 996978 996893 996893 996894 996894 996897 996897 996898 996898 996793 996793 996794 996794 996797 996797 996798 996798 996661 996661 996662 996662 996665 996665 996666 996666 996497 996497 996498 996498 996501 9965...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 107ms
memory: 19016kb

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: 111ms
memory: 19148kb

input:

2
1997
997

output:

997002
0 996961 996961 996962 996962 996975 996975 996976 996976 996977 996977 996978 996978 996893 996893 996894 996894 996897 996897 996898 996898 996793 996793 996794 996794 996797 996797 996798 996798 996661 996661 996662 996662 996665 996665 996666 996666 996497 996497 996498 996498 996501 9965...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 103ms
memory: 19012kb

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: 113ms
memory: 18968kb

input:

2
1995
995

output:

995006
0 993003 993003 992993 992993 993004 993004 993005 993005 992941 992941 992942 992942 992945 992945 992946 992946 992857 992857 992858 992858 992861 992861 992862 992862 992741 992741 992742 992742 992745 992745 992746 992746 992593 992593 992594 992594 992597 992597 992598 992598 992413 9924...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 124ms
memory: 19004kb

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: 98ms
memory: 18924kb

input:

2
1993
993

output:

993012
0 993003 993003 992993 992993 993004 993004 993005 993005 992941 992941 992942 992942 992945 992945 992946 992946 992857 992857 992858 992858 992861 992861 992862 992862 992741 992741 992742 992742 992745 992745 992746 992746 992593 992593 992594 992594 992597 992597 992598 992598 992413 9924...

result:

ok Correct. (2 test cases)

Test #15:

score: 0
Accepted
time: 88ms
memory: 18980kb

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: 106ms
memory: 18972kb

input:

2
1991
991

output:

991020
0 988989 988989 988990 988990 989003 989003 989004 989004 989005 989005 989006 989006 988921 988921 988922 988922 988925 988925 988926 988926 988821 988821 988822 988822 988825 988825 988826 988826 988689 988689 988690 988690 988693 988693 988694 988694 988525 988525 988526 988526 988529 9885...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed