QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#308417#7740. Puzzle: Question Markucup-team254#AC ✓217ms19496kbC++208.1kb2024-01-20 02:40:542024-01-20 02:40:54

詳細信息

Test #1:

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

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: 216ms
memory: 6676kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 196ms
memory: 6004kb

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 1 1 2 2 3 3 4 4 5 5 6 6 7 7 85 85 86 86 87 87 88 88 177 177 178 178 179 179 180 180 301 301 302 302 303 303 304 304 457 457 458 458 459 459 460 460 645 645 646 646 647 647 648 648 865 865 866 866 867 867 868 868 1117 1117 1118 1118 1119 1119 1120 1120 1401 1401 1402 1402 1403 1403 1404 1404 ...

result:

ok Correct. (64 test cases)

Test #4:

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

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 1 1 2 2 3 3 4 4 5 5 6 6 7 7 85 85 86 86 87 87 88 88 177 177 178 178 179 179 180 180 301 301 302 302 303 303 304 304 457 457 458 458 459 459 460 460 645 645 646 646 647 647 648 648 865 865 866 866 867 867 868 868 1117 1117 1118 1118 1119 1119 1120 1120 1401 1401 1402 1402 1403 1403 1404 1404 ...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 195ms
memory: 6616kb

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: 209ms
memory: 6768kb

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 1 1 2 2 3 3 4 4 5 5 6 6 7 7 85 85 86 86 87 87 88 88 177 177 178 178 179 179 180 180 301 301 302 302 303 303 304 304 457 457 458 458 459 459 460 460 645 645 646 646 647 647 648 648 865 865 866 866 867 867 868 868 1117 1117 1118 1118 1119 1119 1120 1120 1401 1401 1402 1402 1403 1403 1404 1404 ...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 210ms
memory: 19496kb

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: 213ms
memory: 19188kb

input:

2
1999
999

output:

999000
0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 85 85 86 86 87 87 88 88 177 177 178 178 179 179 180 180 301 301 302 302 303 303 304 304 457 457 458 458 459 459 460 460 645 645 646 646 647 647 648 648 865 865 866 866 867 867 868 868 1117 1117 1118 1118 1119 1119 1120 1120 1401 1401 1402 1402 1403 1403 1404 1404...

result:

ok Correct. (2 test cases)

Test #9:

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

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

input:

2
1997
997

output:

997002
0 1 1 2 2 3 3 4 4 5 5 6 6 67 67 68 68 69 69 70 70 151 151 152 152 153 153 154 154 267 267 268 268 269 269 270 270 415 415 416 416 417 417 418 418 595 595 596 596 597 597 598 598 807 807 808 808 809 809 810 810 1051 1051 1052 1052 1053 1053 1054 1054 1327 1327 1328 1328 1329 1329 1330 1330 163...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 217ms
memory: 19212kb

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: 191ms
memory: 19244kb

input:

2
1995
995

output:

995006
0 1 1 2 2 3 3 4 4 5 5 51 51 52 52 53 53 54 54 127 127 128 128 129 129 130 130 235 235 236 236 237 237 238 238 375 375 376 376 377 377 378 378 547 547 548 548 549 549 550 550 751 751 752 752 753 753 754 754 987 987 988 988 989 989 990 990 1255 1255 1256 1256 1257 1257 1258 1258 1555 1555 1556 ...

result:

ok Correct. (2 test cases)

Test #13:

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

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: 216ms
memory: 19252kb

input:

2
1993
993

output:

993012
0 1 1 2 3 2 4 4 5 37 37 38 38 39 39 40 40 105 105 106 106 107 107 108 108 205 205 206 206 207 207 208 208 337 337 338 338 339 339 340 340 501 501 502 502 503 503 504 504 697 697 698 698 699 699 700 700 925 925 926 926 927 927 928 928 1185 1185 1186 1186 1187 1187 1188 1188 1477 1477 1478 1478...

result:

ok Correct. (2 test cases)

Test #15:

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

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: 201ms
memory: 19184kb

input:

2
1991
991

output:

991020
0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 85 85 86 86 87 87 88 88 177 177 178 178 179 179 180 180 301 301 302 302 303 303 304 304 457 457 458 458 459 459 460 460 645 645 646 646 647 647 648 648 865 865 866 866 867 867 868 868 1117 1117 1118 1118 1119 1119 1120 1120 1401 1401 1402 1402 1403 1403 1404 1404...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed