QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#263888#7740. Puzzle: Question Markucup-team1878#AC ✓238ms19136kbC++2015.4kb2023-11-25 09:43:492023-11-25 09:43:49

详细

Test #1:

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

input:

2
3
4

output:

2
0 1 1
2 2 1
2 1 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: 232ms
memory: 3976kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 226ms
memory: 4048kb

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 15197 15197 15198 15198 15199 15199 15200 15200 15201 15201 15202 15202 15203 15203 15157 15157 15158 15158 15161 15161 15162 15162 15049 15049 15050 15050 15053 15053 15054 15054 14909 14909 14910 14910 14913 14913 14914 14914 14737 14737 14738 14738 14741 14741 14742 14742 14533 14533 1453...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 213ms
memory: 3732kb

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 24125 24125 24126 24126 24127 24127 24128 24128 24129 24129 24130 24130 24131 24131 24085 24085 24086 24086 24089 24089 24090 24090 23977 23977 23978 23978 23981 23981 23982 23982 23837 23837 23838 23838 23841 23841 23842 23842 23665 23665 23666 23666 23669 23669 23670 23670 23461 23461 2346...

result:

ok Correct. (45 test cases)

Test #5:

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

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: 212ms
memory: 3988kb

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 38165 38165 38166 38166 38167 38167 38168 38168 38169 38169 38170 38170 38171 38171 38125 38125 38126 38126 38129 38129 38130 38130 38017 38017 38018 38018 38021 38021 38022 38022 37877 37877 37878 37878 37881 37881 37882 37882 37705 37705 37706 37706 37709 37709 37710 37710 37501 37501 3750...

result:

ok Correct. (30 test cases)

Test #7:

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

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: 229ms
memory: 19076kb

input:

2
1999
999

output:

999000
0 998945 998945 998946 998946 998947 998947 998948 998948 998949 998949 998950 998950 998951 998951 998905 998905 998906 998906 998909 998909 998910 998910 998797 998797 998798 998798 998801 998801 998802 998802 998657 998657 998658 998658 998661 998661 998662 998662 998485 998485 998486 9984...

result:

ok Correct. (2 test cases)

Test #9:

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

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: 238ms
memory: 18948kb

input:

2
1997
997

output:

997002
0 996961 996961 996962 996962 996963 996963 996964 996964 996965 996965 996966 996966 996929 996929 996930 996930 996933 996933 996934 996934 996829 996829 996830 996830 996833 996833 996834 996834 996697 996697 996698 996698 996701 996701 996702 996702 996533 996533 996534 996534 996537 9965...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 234ms
memory: 18976kb

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: 227ms
memory: 19136kb

input:

2
1995
995

output:

995006
0 994977 994977 994978 994978 994979 994979 994980 994980 994981 994981 994953 994953 994954 994954 994957 994957 994958 994958 994861 994861 994862 994862 994865 994865 994866 994866 994737 994737 994738 994738 994741 994741 994742 994742 994581 994581 994582 994582 994585 994585 994586 9945...

result:

ok Correct. (2 test cases)

Test #13:

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

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: 227ms
memory: 18656kb

input:

2
1993
993

output:

993012
0 992993 992993 992994 992995 992994 992996 992996 992997 992977 992977 992978 992978 992981 992981 992982 992982 992893 992893 992894 992894 992897 992897 992898 992898 992777 992777 992778 992778 992781 992781 992782 992782 992629 992629 992630 992630 992633 992633 992634 992634 992449 9924...

result:

ok Correct. (2 test cases)

Test #15:

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

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: 234ms
memory: 18812kb

input:

2
1991
991

output:

991020
0 990965 990965 990966 990966 990967 990967 990968 990968 990969 990969 990970 990970 990971 990971 990925 990925 990926 990926 990929 990929 990930 990930 990817 990817 990818 990818 990821 990821 990822 990822 990677 990677 990678 990678 990681 990681 990682 990682 990505 990505 990506 9905...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed