QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#287293#4205. Art Collectionsxsap100 ✓1470ms4116kbC++141.1kb2023-12-20 10:39:482023-12-20 10:39:49

详细

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 1ms
memory: 3776kb

input:

6
15
14
12
10
8
6

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 6 5 4 3 2 1

result:

ok correct

Test #2:

score: 0
Accepted
time: 1ms
memory: 3768kb

input:

6
9
8
6
4
6
8

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #3:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

6
9
8
6
4
6
8

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #4:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

6
9
8
6
4
6
8

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 4 3 5 2 6 1

result:

ok correct

Test #5:

score: 0
Accepted
time: 0ms
memory: 4052kb

input:

3
1
2
2

output:

942318468 3 1 2 3
942318468 3 2 1 3
942318468 3 3 2 1
539883183 3 1 3 2

result:

ok correct

Test #6:

score: 0
Accepted
time: 0ms
memory: 3760kb

input:

6
0
1
3
5
7
9

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 1 2 3 4 5 6

result:

ok correct

Test #7:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

6
9
8
6
4
6
8

output:

942318468 6 1 2 3 4 5 6
942318468 6 2 1 3 4 5 6
942318468 6 3 2 1 4 5 6
942318468 6 4 2 3 1 5 6
942318468 6 5 2 3 4 1 6
942318468 6 6 2 3 4 5 1
539883183 6 4 3 5 2 6 1

result:

ok correct

Subtask #2:

score: 15
Accepted

Test #8:

score: 15
Accepted
time: 1ms
memory: 3756kb

input:

40
394
395
395
397
393
397
401
393
393
391
397
403
389
397
411
383
409
409
397
417
395
401
389
385
421
405
409
421
415
425
413
405
391
385
385
413
375
433
369
429

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #9:

score: 0
Accepted
time: 1ms
memory: 3776kb

input:

40
394
395
395
397
393
397
401
393
393
391
397
403
389
397
411
383
409
409
397
417
395
401
389
385
421
405
409
421
415
425
413
405
391
385
385
413
375
433
369
429

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #10:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

40
394
395
395
397
393
397
401
393
393
391
397
403
389
397
411
383
409
409
397
417
395
401
389
385
421
405
409
421
415
425
413
405
391
385
385
413
375
433
369
429

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #11:

score: 0
Accepted
time: 1ms
memory: 3828kb

input:

40
394
395
395
397
393
397
401
393
393
391
397
403
389
397
411
383
409
409
397
417
395
401
389
385
421
405
409
421
415
425
413
405
391
385
385
413
375
433
369
429

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #12:

score: 0
Accepted
time: 1ms
memory: 3788kb

input:

40
780
779
777
775
773
771
769
767
765
763
761
759
757
755
753
751
749
747
745
743
741
739
737
735
733
731
729
727
725
723
721
719
717
715
713
711
709
707
705
703

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Test #13:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

40
0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77

output:

942318468 40 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
942318468 40 2 1 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
942318468 40 3 2 1 4 5 6 7 8 9 10 11 12 13 14 15 16 ...

result:

ok correct

Subtask #3:

score: 15
Accepted

Test #14:

score: 15
Accepted
time: 5ms
memory: 3808kb

input:

250
31125
31124
31122
31120
31118
31116
31114
31112
31110
31108
31106
31104
31102
31100
31098
31096
31094
31092
31090
31088
31086
31084
31082
31080
31078
31076
31074
31072
31070
31068
31066
31064
31062
31060
31058
31056
31054
31052
31050
31048
31046
31044
31042
31040
31038
31036
31034
31032
31030
31...

output:

942318468 250 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 9...

result:

ok correct

Test #15:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

250
15389
15388
15390
15390
15394
15396
15394
15396
15392
15392
15386
15386
15382
15406
15386
15378
15408
15386
15400
15410
15410
15404
15388
15374
15410
15376
15420
15386
15384
15398
15424
15410
15422
15394
15410
15416
15366
15416
15436
15398
15376
15438
15428
15368
15432
15376
15414
15408
15374
15...

output:

942318468 250 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 9...

result:

ok correct

Test #16:

score: 0
Accepted
time: 4ms
memory: 4064kb

input:

250
0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
121
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
155
157
159
161
163
165
167
169
171
173
1...

output:

942318468 250 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 9...

result:

ok correct

Test #17:

score: 0
Accepted
time: 0ms
memory: 4072kb

input:

250
15389
15388
15390
15390
15394
15396
15394
15396
15392
15392
15386
15386
15382
15406
15386
15378
15408
15386
15400
15410
15410
15404
15388
15374
15410
15376
15420
15386
15384
15398
15424
15410
15422
15394
15410
15416
15366
15416
15436
15398
15376
15438
15428
15368
15432
15376
15414
15408
15374
15...

output:

942318468 250 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 9...

result:

ok correct

Test #18:

score: 0
Accepted
time: 4ms
memory: 4068kb

input:

250
15389
15388
15390
15390
15394
15396
15394
15396
15392
15392
15386
15386
15382
15406
15386
15378
15408
15386
15400
15410
15410
15404
15388
15374
15410
15376
15420
15386
15384
15398
15424
15410
15422
15394
15410
15416
15366
15416
15436
15398
15376
15438
15428
15368
15432
15376
15414
15408
15374
15...

output:

942318468 250 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 9...

result:

ok correct

Test #19:

score: 0
Accepted
time: 2ms
memory: 3776kb

input:

250
15389
15388
15390
15390
15394
15396
15394
15396
15392
15392
15386
15386
15382
15406
15386
15378
15408
15386
15400
15410
15410
15404
15388
15374
15410
15376
15420
15386
15384
15398
15424
15410
15422
15394
15410
15416
15366
15416
15436
15398
15376
15438
15428
15368
15432
15376
15414
15408
15374
15...

output:

942318468 250 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 9...

result:

ok correct

Subtask #4:

score: 15
Accepted

Test #20:

score: 15
Accepted
time: 13ms
memory: 4068kb

input:

444
48125
48124
48124
48122
48120
48120
48116
48126
48114
48112
48108
48108
48104
48128
48130
48102
48120
48132
48114
48118
48130
48112
48102
48092
48116
48092
48120
48136
48096
48136
48120
48108
48120
48134
48102
48138
48074
48126
48116
48138
48120
48112
48146
48072
48104
48076
48134
48090
48072
48...

output:

942318468 444 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 9...

result:

ok correct

Test #21:

score: 0
Accepted
time: 11ms
memory: 3776kb

input:

444
0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
121
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
155
157
159
161
163
165
167
169
171
173
1...

output:

942318468 444 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 9...

result:

ok correct

Test #22:

score: 0
Accepted
time: 5ms
memory: 3744kb

input:

444
48125
48124
48124
48122
48120
48120
48116
48126
48114
48112
48108
48108
48104
48128
48130
48102
48120
48132
48114
48118
48130
48112
48102
48092
48116
48092
48120
48136
48096
48136
48120
48108
48120
48134
48102
48138
48074
48126
48116
48138
48120
48112
48146
48072
48104
48076
48134
48090
48072
48...

output:

942318468 444 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 9...

result:

ok correct

Test #23:

score: 0
Accepted
time: 11ms
memory: 3792kb

input:

444
48125
48124
48124
48122
48120
48120
48116
48126
48114
48112
48108
48108
48104
48128
48130
48102
48120
48132
48114
48118
48130
48112
48102
48092
48116
48092
48120
48136
48096
48136
48120
48108
48120
48134
48102
48138
48074
48126
48116
48138
48120
48112
48146
48072
48104
48076
48134
48090
48072
48...

output:

942318468 444 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 9...

result:

ok correct

Test #24:

score: 0
Accepted
time: 7ms
memory: 3772kb

input:

444
98346
98345
98343
98341
98339
98337
98335
98333
98331
98329
98327
98325
98323
98321
98319
98317
98315
98313
98311
98309
98307
98305
98303
98301
98299
98297
98295
98293
98291
98289
98287
98285
98283
98281
98279
98277
98275
98273
98271
98269
98267
98265
98263
98261
98259
98257
98255
98253
98251
98...

output:

942318468 444 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 9...

result:

ok correct

Test #25:

score: 0
Accepted
time: 11ms
memory: 4072kb

input:

444
48125
48124
48124
48122
48120
48120
48116
48126
48114
48112
48108
48108
48104
48128
48130
48102
48120
48132
48114
48118
48130
48112
48102
48092
48116
48092
48120
48136
48096
48136
48120
48108
48120
48134
48102
48138
48074
48126
48116
48138
48120
48112
48146
48072
48104
48076
48134
48090
48072
48...

output:

942318468 444 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 9...

result:

ok correct

Subtask #5:

score: 20
Accepted

Test #26:

score: 20
Accepted
time: 291ms
memory: 4096kb

input:

2000
984031
984030
984030
984030
984024
984028
984028
984018
984018
984032
984014
984032
984024
984034
984014
984008
984026
984022
984010
984028
984016
984028
984036
983996
984014
984002
983994
984036
983998
983998
984040
984032
983990
984004
984038
984008
984028
984046
984006
983986
984046
984006
9...

output:

942318468 2000 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 ...

result:

ok correct

Test #27:

score: 0
Accepted
time: 292ms
memory: 3892kb

input:

2000
984031
984030
984030
984030
984024
984028
984028
984018
984018
984032
984014
984032
984024
984034
984014
984008
984026
984022
984010
984028
984016
984028
984036
983996
984014
984002
983994
984036
983998
983998
984040
984032
983990
984004
984038
984008
984028
984046
984006
983986
984046
984006
9...

output:

942318468 2000 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 ...

result:

ok correct

Test #28:

score: 0
Accepted
time: 243ms
memory: 3824kb

input:

2000
0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
121
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
155
157
159
161
163
165
167
169
171
173
...

output:

942318468 2000 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 ...

result:

ok correct

Test #29:

score: 0
Accepted
time: 290ms
memory: 4104kb

input:

2000
1999000
1998999
1998997
1998995
1998993
1998991
1998989
1998987
1998985
1998983
1998981
1998979
1998977
1998975
1998973
1998971
1998969
1998967
1998965
1998963
1998961
1998959
1998957
1998955
1998953
1998951
1998949
1998947
1998945
1998943
1998941
1998939
1998937
1998935
1998933
1998931
1998929...

output:

942318468 2000 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 ...

result:

ok correct

Test #30:

score: 0
Accepted
time: 255ms
memory: 3872kb

input:

2000
984031
984030
984030
984030
984024
984028
984028
984018
984018
984032
984014
984032
984024
984034
984014
984008
984026
984022
984010
984028
984016
984028
984036
983996
984014
984002
983994
984036
983998
983998
984040
984032
983990
984004
984038
984008
984028
984046
984006
983986
984046
984006
9...

output:

942318468 2000 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 ...

result:

ok correct

Test #31:

score: 0
Accepted
time: 296ms
memory: 3808kb

input:

2000
984031
984030
984030
984030
984024
984028
984028
984018
984018
984032
984014
984032
984024
984034
984014
984008
984026
984022
984010
984028
984016
984028
984036
983996
984014
984002
983994
984036
983998
983998
984040
984032
983990
984004
984038
984008
984028
984046
984006
983986
984046
984006
9...

output:

942318468 2000 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 ...

result:

ok correct

Subtask #6:

score: 30
Accepted

Test #32:

score: 30
Accepted
time: 1074ms
memory: 3868kb

input:

4000
3954555
3954556
3954556
3954554
3954552
3954560
3954558
3954556
3954550
3954556
3954564
3954556
3954566
3954558
3954566
3954548
3954552
3954550
3954544
3954570
3954564
3954576
3954562
3954582
3954548
3954542
3954538
3954560
3954538
3954572
3954562
3954556
3954536
3954590
3954562
3954570
3954582...

output:

942318468 4000 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 ...

result:

ok correct

Test #33:

score: 0
Accepted
time: 1173ms
memory: 3824kb

input:

4000
0
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
99
101
103
105
107
109
111
113
115
117
119
121
123
125
127
129
131
133
135
137
139
141
143
145
147
149
151
153
155
157
159
161
163
165
167
169
171
173
...

output:

942318468 4000 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 ...

result:

ok correct

Test #34:

score: 0
Accepted
time: 1215ms
memory: 3880kb

input:

4000
3954555
3954556
3954556
3954554
3954552
3954560
3954558
3954556
3954550
3954556
3954564
3954556
3954566
3954558
3954566
3954548
3954552
3954550
3954544
3954570
3954564
3954576
3954562
3954582
3954548
3954542
3954538
3954560
3954538
3954572
3954562
3954556
3954536
3954590
3954562
3954570
3954582...

output:

942318468 4000 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 ...

result:

ok correct

Test #35:

score: 0
Accepted
time: 1322ms
memory: 4116kb

input:

4000
7998000
7997999
7997997
7997995
7997993
7997991
7997989
7997987
7997985
7997983
7997981
7997979
7997977
7997975
7997973
7997971
7997969
7997967
7997965
7997963
7997961
7997959
7997957
7997955
7997953
7997951
7997949
7997947
7997945
7997943
7997941
7997939
7997937
7997935
7997933
7997931
7997929...

output:

942318468 4000 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 ...

result:

ok correct

Test #36:

score: 0
Accepted
time: 1416ms
memory: 3808kb

input:

4000
3954555
3954556
3954556
3954554
3954552
3954560
3954558
3954556
3954550
3954556
3954564
3954556
3954566
3954558
3954566
3954548
3954552
3954550
3954544
3954570
3954564
3954576
3954562
3954582
3954548
3954542
3954538
3954560
3954538
3954572
3954562
3954556
3954536
3954590
3954562
3954570
3954582...

output:

942318468 4000 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 ...

result:

ok correct

Test #37:

score: 0
Accepted
time: 1470ms
memory: 3852kb

input:

4000
3954555
3954556
3954556
3954554
3954552
3954560
3954558
3954556
3954550
3954556
3954564
3954556
3954566
3954558
3954566
3954548
3954552
3954550
3954544
3954570
3954564
3954576
3954562
3954582
3954548
3954542
3954538
3954560
3954538
3954572
3954562
3954556
3954536
3954590
3954562
3954570
3954582...

output:

942318468 4000 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 ...

result:

ok correct