QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#265190#7740. Puzzle: Question Markucup-team1126#AC ✓224ms19452kbC++204.7kb2023-11-25 17:10:332023-11-25 17:10:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 205ms
memory: 6108kb

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

result:

ok Correct. (246 test cases)

Test #3:

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

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 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 15...

result:

ok Correct. (64 test cases)

Test #4:

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

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 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 15...

result:

ok Correct. (45 test cases)

Test #5:

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

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 17 17 18 18 37 37 38 38 65 65 66 66 101 101 102 102 145 145 146 146 197 197 198 198 257 257 258 258 325 325 326 326 401 401 402 402 485 485 486 486 577 577 578 578 677 677 678 678 785 785 786 786 901 901 902 902 1025 1025 1026 1026 1157 1157 1158 1158 1297 1297 1298 1298 1445 1...

result:

ok Correct. (35 test cases)

Test #6:

score: 0
Accepted
time: 190ms
memory: 8132kb

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 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 15...

result:

ok Correct. (30 test cases)

Test #7:

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

input:

2
2000
1000

output:

1000000
1 1 2 2 5 5 6 6 17 17 18 18 37 37 38 38 65 65 66 66 101 101 102 102 145 145 146 146 197 197 198 198 257 257 258 258 325 325 326 326 401 401 402 402 485 485 486 486 577 577 578 578 677 677 678 678 785 785 786 786 901 901 902 902 1025 1025 1026 1026 1157 1157 1158 1158 1297 1297 1298 1298 1445...

result:

ok Correct. (2 test cases)

Test #8:

score: 0
Accepted
time: 214ms
memory: 19408kb

input:

2
1999
999

output:

999000
1 1 2 2 3 3 4 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 1...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 224ms
memory: 19436kb

input:

2
1998
998

output:

998000
0 0 1 1 2 2 9 9 10 10 25 25 26 26 49 49 50 50 81 81 82 82 121 121 122 122 169 169 170 170 225 225 226 226 289 289 290 290 361 361 362 362 441 441 442 442 529 529 530 530 625 625 626 626 729 729 730 730 841 841 842 842 961 961 962 962 1089 1089 1090 1090 1225 1225 1226 1226 1369 1369 1370 1370...

result:

ok Correct. (2 test cases)

Test #10:

score: 0
Accepted
time: 218ms
memory: 19388kb

input:

2
1997
997

output:

997002
1 1 2 2 3 3 4 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 1...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 205ms
memory: 19356kb

input:

2
1996
996

output:

996004
1 1 2 2 5 5 6 6 17 17 18 18 37 37 38 38 65 65 66 66 101 101 102 102 145 145 146 146 197 197 198 198 257 257 258 258 325 325 326 326 401 401 402 402 485 485 486 486 577 577 578 578 677 677 678 678 785 785 786 786 901 901 902 902 1025 1025 1026 1026 1157 1157 1158 1158 1297 1297 1298 1298 1445 ...

result:

ok Correct. (2 test cases)

Test #12:

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

input:

2
1995
995

output:

995006
1 1 2 2 3 3 4 5 5 40 39 40 56 56 55 54 54 92 91 92 108 108 107 106 106 176 175 176 192 192 191 190 190 292 291 292 308 308 307 306 306 440 439 440 456 456 455 454 454 620 619 620 636 636 635 634 634 832 831 832 848 848 847 846 846 1076 1075 1076 1092 1092 1091 1090 1090 1352 1351 1352 1368 13...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 214ms
memory: 19400kb

input:

2
1994
994

output:

994008
0 0 1 1 2 2 9 9 10 10 25 25 26 26 49 49 50 50 81 81 82 82 121 121 122 122 169 169 170 170 225 225 226 226 289 289 290 290 361 361 362 362 441 441 442 442 529 529 530 530 625 625 626 626 729 729 730 730 841 841 842 842 961 961 962 962 1089 1089 1090 1090 1225 1225 1226 1226 1369 1369 1370 1370...

result:

ok Correct. (2 test cases)

Test #14:

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

input:

2
1993
993

output:

993012
1 1 2 2 3 3 4 5 5 40 39 40 56 56 55 54 54 92 91 92 108 108 107 106 106 176 175 176 192 192 191 190 190 292 291 292 308 308 307 306 306 440 439 440 456 456 455 454 454 620 619 620 636 636 635 634 634 832 831 832 848 848 847 846 846 1076 1075 1076 1092 1092 1091 1090 1090 1352 1351 1352 1368 13...

result:

ok Correct. (2 test cases)

Test #15:

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

input:

2
1992
992

output:

992016
1 1 2 2 5 5 6 6 17 17 18 18 37 37 38 38 65 65 66 66 101 101 102 102 145 145 146 146 197 197 198 198 257 257 258 258 325 325 326 326 401 401 402 402 485 485 486 486 577 577 578 578 677 677 678 678 785 785 786 786 901 901 902 902 1025 1025 1026 1026 1157 1157 1158 1158 1297 1297 1298 1298 1445 ...

result:

ok Correct. (2 test cases)

Test #16:

score: 0
Accepted
time: 206ms
memory: 19412kb

input:

2
1991
991

output:

991020
1 1 2 2 3 3 4 4 5 5 6 7 7 62 61 62 78 78 77 76 76 130 129 130 146 146 145 144 144 230 229 230 246 246 245 244 244 362 361 362 378 378 377 376 376 526 525 526 542 542 541 540 540 722 721 722 738 738 737 736 736 950 949 950 966 966 965 964 964 1210 1209 1210 1226 1226 1225 1224 1224 1502 1501 1...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed