QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#265319#7740. Puzzle: Question Markucup-team135#AC ✓602ms69324kbC++206.2kb2023-11-25 17:50:132023-11-25 17:50:13

详细

Test #1:

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

input:

2
3
4

output:

2
1 2 1 
1 1 2 
0 2 2 
4
1 2 1 2 
1 1 2 2 
3 4 3 4 
3 3 4 4 

result:

ok Correct. (2 test cases)

Test #2:

score: 0
Accepted
time: 503ms
memory: 7088kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 534ms
memory: 9888kb

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 4 2 3 5 3 29 30 29 30 31 32 31 87 87 88 90 88 89 91 89 179 179 180 182 180 181 183 181 303 303 304 306 304 305 307 305 459 459 460 462 460 461 463 461 647 647 648 650 648 649 651 649 867 867 868 870 868 869 871 869 1119 1119 1120 1122 1120 1121 1123 1121 1403 1403 1404 1406 1404 1405 140...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 540ms
memory: 11904kb

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 4 2 3 5 3 29 30 29 30 31 32 31 87 87 88 90 88 89 91 89 179 179 180 182 180 181 183 181 303 303 304 306 304 305 307 305 459 459 460 462 460 461 463 461 647 647 648 650 648 649 651 649 867 867 868 870 868 869 871 869 1119 1119 1120 1122 1120 1121 1123 1121 1403 1403 1404 1406 1404 1405 140...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 525ms
memory: 13808kb

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 2 1 2 3 4 3 4 5 6 5 6 61 62 61 62 63 64 63 64 141 142 141 142 143 144 143 144 253 254 253 254 255 256 255 256 397 398 397 398 399 400 399 400 573 574 573 574 575 576 575 576 781 782 781 782 783 784 783 784 1021 1022 1021 1022 1023 1024 1023 1024 1293 1294 1293 1294 1295 1296 1295 1296 1597 1...

result:

ok Correct. (35 test cases)

Test #6:

score: 0
Accepted
time: 535ms
memory: 14884kb

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 4 2 3 5 3 29 30 29 30 31 32 31 87 87 88 90 88 89 91 89 179 179 180 182 180 181 183 181 303 303 304 306 304 305 307 305 459 459 460 462 460 461 463 461 647 647 648 650 648 649 651 649 867 867 868 870 868 869 871 869 1119 1119 1120 1122 1120 1121 1123 1121 1403 1403 1404 1406 1404 1405 140...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 589ms
memory: 69324kb

input:

2
2000
1000

output:

1000000
1 2 1 2 3 4 3 4 33 34 33 34 35 36 35 36 97 98 97 98 99 100 99 100 193 194 193 194 195 196 195 196 321 322 321 322 323 324 323 324 481 482 481 482 483 484 483 484 673 674 673 674 675 676 675 676 897 898 897 898 899 900 899 900 1153 1154 1153 1154 1155 1156 1155 1156 1441 1442 1441 1442 1443 1...

result:

ok Correct. (2 test cases)

Test #8:

score: 0
Accepted
time: 559ms
memory: 67640kb

input:

2
1999
999

output:

999000
1 1 2 4 2 3 5 3 29 30 29 30 31 32 31 87 87 88 90 88 89 91 89 179 179 180 182 180 181 183 181 303 303 304 306 304 305 307 305 459 459 460 462 460 461 463 461 647 647 648 650 648 649 651 649 867 867 868 870 868 869 871 869 1119 1119 1120 1122 1120 1121 1123 1121 1403 1403 1404 1406 1404 1405 14...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 590ms
memory: 69136kb

input:

2
1998
998

output:

998000
1 2 1 2 3 3 21 22 21 22 23 24 23 24 77 78 77 78 79 80 79 80 165 166 165 166 167 168 167 168 285 286 285 286 287 288 287 288 437 438 437 438 439 440 439 440 621 622 621 622 623 624 623 624 837 838 837 838 839 840 839 840 1085 1086 1085 1086 1087 1088 1087 1088 1365 1366 1365 1366 1367 1368 136...

result:

ok Correct. (2 test cases)

Test #10:

score: 0
Accepted
time: 601ms
memory: 68916kb

input:

2
1997
997

output:

997002
1 2 1 2 3 4 3 4 5 7 5 6 6 69 70 69 70 71 72 71 72 153 154 153 154 155 156 155 156 269 270 269 270 271 272 271 272 417 418 417 418 419 420 419 420 597 598 597 598 599 600 599 600 809 810 809 810 811 812 811 812 1053 1054 1053 1054 1055 1056 1055 1056 1329 1330 1329 1330 1331 1332 1331 1332 163...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 583ms
memory: 68004kb

input:

2
1996
996

output:

996004
1 2 1 2 3 4 3 4 5 6 5 6 61 62 61 62 63 64 63 64 141 142 141 142 143 144 143 144 253 254 253 254 255 256 255 256 397 398 397 398 399 400 399 400 573 574 573 574 575 576 575 576 781 782 781 782 783 784 783 784 1021 1022 1021 1022 1023 1024 1023 1024 1293 1294 1293 1294 1295 1296 1295 1296 1597 ...

result:

ok Correct. (2 test cases)

Test #12:

score: 0
Accepted
time: 554ms
memory: 68312kb

input:

2
1995
995

output:

995006
1 2 1 2 3 4 3 4 5 6 5 53 53 54 56 54 55 57 55 129 129 130 132 130 131 133 131 237 237 238 240 238 239 241 239 377 377 378 380 378 379 381 379 549 549 550 552 550 551 553 551 753 753 754 756 754 755 757 755 989 989 990 992 990 991 993 991 1257 1257 1258 1260 1258 1259 1261 1259 1557 1557 1558 ...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 574ms
memory: 68492kb

input:

2
1994
994

output:

994008
1 2 1 2 3 4 3 4 5 5 45 46 45 46 47 48 47 48 117 118 117 118 119 120 119 120 221 222 221 222 223 224 223 224 357 358 357 358 359 360 359 360 525 526 525 526 527 528 527 528 725 726 725 726 727 728 727 728 957 958 957 958 959 960 959 960 1221 1222 1221 1222 1223 1224 1223 1224 1517 1518 1517 15...

result:

ok Correct. (2 test cases)

Test #14:

score: 0
Accepted
time: 548ms
memory: 67780kb

input:

2
1993
993

output:

993012
1 2 1 2 3 5 3 4 4 39 40 39 40 41 42 41 42 107 108 107 108 109 110 109 110 207 208 207 208 209 210 209 210 339 340 339 340 341 342 341 342 503 504 503 504 505 506 505 506 699 700 699 700 701 702 701 702 927 928 927 928 929 930 929 930 1187 1188 1187 1188 1189 1190 1189 1190 1479 1480 1479 1480...

result:

ok Correct. (2 test cases)

Test #15:

score: 0
Accepted
time: 594ms
memory: 67704kb

input:

2
1992
992

output:

992016
1 2 1 2 3 4 3 4 33 34 33 34 35 36 35 36 97 98 97 98 99 100 99 100 193 194 193 194 195 196 195 196 321 322 321 322 323 324 323 324 481 482 481 482 483 484 483 484 673 674 673 674 675 676 675 676 897 898 897 898 899 900 899 900 1153 1154 1153 1154 1155 1156 1155 1156 1441 1442 1441 1442 1443 14...

result:

ok Correct. (2 test cases)

Test #16:

score: 0
Accepted
time: 602ms
memory: 68132kb

input:

2
1991
991

output:

991020
1 1 2 4 2 3 5 3 29 30 29 30 31 32 31 87 87 88 90 88 89 91 89 179 179 180 182 180 181 183 181 303 303 304 306 304 305 307 305 459 459 460 462 460 461 463 461 647 647 648 650 648 649 651 649 867 867 868 870 868 869 871 869 1119 1119 1120 1122 1120 1121 1123 1121 1403 1403 1404 1406 1404 1405 14...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed