QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#263662#7740. Puzzle: Question Markucup-team2045#AC ✓222ms35004kbC++146.4kb2023-11-25 01:33:242023-11-25 01:33:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 184ms
memory: 4064kb

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

result:

ok Correct. (246 test cases)

Test #3:

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

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 1 2 2 3 3 4 5 4 6 7 7 8 8 9 57 57 58 58 59 59 60 60 133 133 134 134 135 135 136 136 241 241 242 242 243 243 244 244 381 381 382 382 383 383 384 384 553 553 554 554 555 555 556 556 757 757 758 758 759 759 760 760 993 993 994 994 995 995 996 996 1261 1261 1262 1262 1263 1263 1264 1264 1561 156...

result:

ok Correct. (64 test cases)

Test #4:

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

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 1 2 2 3 3 4 5 4 6 7 7 8 8 9 57 57 58 58 59 59 60 60 133 133 134 134 135 135 136 136 241 241 242 242 243 243 244 244 381 381 382 382 383 383 384 384 553 553 554 554 555 555 556 556 757 757 758 758 759 759 760 760 993 993 994 994 995 995 996 996 1261 1261 1262 1262 1263 1263 1264 1264 1561 156...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 193ms
memory: 4888kb

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: 192ms
memory: 5076kb

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 1 2 2 3 3 4 5 4 6 7 7 8 8 9 57 57 58 58 59 59 60 60 133 133 134 134 135 135 136 136 241 241 242 242 243 243 244 244 381 381 382 382 383 383 384 384 553 553 554 554 555 555 556 556 757 757 758 758 759 759 760 760 993 993 994 994 995 995 996 996 1261 1261 1262 1262 1263 1263 1264 1264 1561 156...

result:

ok Correct. (30 test cases)

Test #7:

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

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: 207ms
memory: 34900kb

input:

2
1999
999

output:

999000
1 1 2 2 3 3 4 5 4 6 7 7 8 8 9 57 57 58 58 59 59 60 60 133 133 134 134 135 135 136 136 241 241 242 242 243 243 244 244 381 381 382 382 383 383 384 384 553 553 554 554 555 555 556 556 757 757 758 758 759 759 760 760 993 993 994 994 995 995 996 996 1261 1261 1262 1262 1263 1263 1264 1264 1561 15...

result:

ok Correct. (2 test cases)

Test #9:

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

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: 222ms
memory: 34852kb

input:

2
1997
997

output:

997002
1 1 2 2 3 3 4 4 5 5 6 7 6 43 43 44 44 45 45 46 46 111 111 112 112 113 113 114 114 211 211 212 212 213 213 214 214 343 343 344 344 345 345 346 346 507 507 508 508 509 509 510 510 703 703 704 704 705 705 706 706 931 931 932 932 933 933 934 934 1191 1191 1192 1192 1193 1193 1194 1194 1483 1483 1...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 200ms
memory: 34860kb

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: 210ms
memory: 34692kb

input:

2
1995
995

output:

995006
1 1 2 2 3 4 4 5 5 6 6 31 31 32 32 33 33 34 34 91 91 92 92 93 93 94 94 183 183 184 184 185 185 186 186 307 307 308 308 309 309 310 310 463 463 464 464 465 465 466 466 651 651 652 652 653 653 654 654 871 871 872 872 873 873 874 874 1123 1123 1124 1124 1125 1125 1126 1126 1407 1407 1408 1408 140...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 192ms
memory: 34740kb

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: 199ms
memory: 34692kb

input:

2
1993
993

output:

993012
1 1 3 2 3 4 4 5 5 21 21 22 22 23 23 24 24 73 73 74 74 75 75 76 76 157 157 158 158 159 159 160 160 273 273 274 274 275 275 276 276 421 421 422 422 423 423 424 424 601 601 602 602 603 603 604 604 813 813 814 814 815 815 816 816 1057 1057 1058 1058 1059 1059 1060 1060 1333 1333 1334 1334 1335 13...

result:

ok Correct. (2 test cases)

Test #15:

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

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

input:

2
1991
991

output:

991020
1 1 2 2 3 3 4 5 4 6 7 7 8 8 9 57 57 58 58 59 59 60 60 133 133 134 134 135 135 136 136 241 241 242 242 243 243 244 244 381 381 382 382 383 383 384 384 553 553 554 554 555 555 556 556 757 757 758 758 759 759 760 760 993 993 994 994 995 995 996 996 1261 1261 1262 1262 1263 1263 1264 1264 1561 15...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed