QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#317436#7740. Puzzle: Question MarkReliaukAC ✓185ms19396kbC++173.8kb2024-01-29 00:20:542024-01-29 00:20:54

詳細信息

Test #1:

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

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: 143ms
memory: 5896kb

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

result:

ok Correct. (246 test cases)

Test #3:

score: 0
Accepted
time: 156ms
memory: 6428kb

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
14521 14521 14522 14522 14523 14523 14524 14524 14525 14525 14526 14526 14527 14527 14528 14528 14529 14529 14530 14530 14531 14531 14532 14532 14533 14533 14534 14534 14535 14535 14536 14536 14537 14537 14538 14538 14539 14539 14540 14540 14541 14541 14542 14542 14543 14543 14544 14544 14545 ...

result:

ok Correct. (64 test cases)

Test #4:

score: 0
Accepted
time: 150ms
memory: 6876kb

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
23257 23257 23258 23258 23259 23259 23260 23260 23261 23261 23262 23262 23263 23263 23264 23264 23265 23265 23266 23266 23267 23267 23268 23268 23269 23269 23270 23270 23271 23271 23272 23272 23273 23273 23274 23274 23275 23275 23276 23276 23277 23277 23278 23278 23279 23279 23280 23280 23281 ...

result:

ok Correct. (45 test cases)

Test #5:

score: 0
Accepted
time: 150ms
memory: 7136kb

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: 152ms
memory: 8028kb

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
37057 37057 37058 37058 37059 37059 37060 37060 37061 37061 37062 37062 37063 37063 37064 37064 37065 37065 37066 37066 37067 37067 37068 37068 37069 37069 37070 37070 37071 37071 37072 37072 37073 37073 37074 37074 37075 37075 37076 37076 37077 37077 37078 37078 37079 37079 37080 37080 37081 ...

result:

ok Correct. (30 test cases)

Test #7:

score: 0
Accepted
time: 173ms
memory: 19296kb

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: 185ms
memory: 19396kb

input:

2
1999
999

output:

999000
993013 993013 993014 993014 993015 993015 993016 993016 993017 993017 993018 993018 993019 993019 993020 993020 993021 993021 993022 993022 993023 993023 993024 993024 993025 993025 993026 993026 993027 993027 993028 993028 993029 993029 993030 993030 993031 993031 993032 993032 993033 993033...

result:

ok Correct. (2 test cases)

Test #9:

score: 0
Accepted
time: 169ms
memory: 19292kb

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: 159ms
memory: 19320kb

input:

2
1997
997

output:

997002
993013 993013 993014 993014 993015 993015 993016 993016 993017 993017 993018 993018 993019 993019 993020 993020 993021 993021 993022 993022 993023 993023 993024 993024 993025 993025 993026 993026 993027 993027 993028 993028 993029 993029 993030 993030 993031 993031 993032 993032 993033 993033...

result:

ok Correct. (2 test cases)

Test #11:

score: 0
Accepted
time: 156ms
memory: 19396kb

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: 158ms
memory: 19368kb

input:

2
1995
995

output:

995006
989031 989031 989032 989032 989033 989033 989034 989034 989035 989035 989036 989036 989037 989037 989038 989038 989039 989039 989040 989040 989041 989041 989042 989042 989043 989043 989044 989044 989045 989045 989046 989046 989047 989047 989048 989048 989049 989049 989050 989050 989051 989051...

result:

ok Correct. (2 test cases)

Test #13:

score: 0
Accepted
time: 173ms
memory: 19372kb

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: 179ms
memory: 19280kb

input:

2
1993
993

output:

993012
989031 989031 989032 989032 989033 989033 989034 989034 989035 989035 989036 989036 989037 989037 989038 989038 989039 989039 989040 989040 989041 989041 989042 989042 989043 989043 989044 989044 989045 989045 989046 989046 989047 989047 989048 989048 989049 989049 989050 989050 989051 989051...

result:

ok Correct. (2 test cases)

Test #15:

score: 0
Accepted
time: 157ms
memory: 19316kb

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: 167ms
memory: 19352kb

input:

2
1991
991

output:

991020
985057 985057 985058 985058 985059 985059 985060 985060 985061 985061 985062 985062 985063 985063 985064 985064 985065 985065 985066 985066 985067 985067 985068 985068 985069 985069 985070 985070 985071 985071 985072 985072 985073 985073 985074 985074 985075 985075 985076 985076 985077 985077...

result:

ok Correct. (2 test cases)

Extra Test:

score: 0
Extra Test Passed