QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#83046#4503. Golf Botxiaowuc1AC ✓34ms20868kbC++1714.0kb2023-03-01 05:34:442023-03-01 05:34:46

詳細信息

Test #1:

score: 100
Accepted
time: 34ms
memory: 18904kb

input:

3
1
3
5
6
2
4
5
7
8
9

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 22ms
memory: 19736kb

input:

50000
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
174...

output:

50000

result:

ok single line: '50000'

Test #3:

score: 0
Accepted
time: 26ms
memory: 20712kb

input:

100000
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
17...

output:

100000

result:

ok single line: '100000'

Test #4:

score: 0
Accepted
time: 30ms
memory: 20868kb

input:

100001
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
17...

output:

100001

result:

ok single line: '100001'

Test #5:

score: 0
Accepted
time: 23ms
memory: 20576kb

input:

17984
2
3
5
7
11
13
17
19
23
29
31
37
41
43
47
53
59
61
67
71
73
79
83
89
97
101
103
107
109
113
127
131
137
139
149
151
157
163
167
173
179
181
191
193
197
199
211
223
227
229
233
239
241
251
257
263
269
271
277
281
283
293
307
311
313
317
331
337
347
349
353
359
367
373
379
383
389
397
401
409
419...

output:

133805

result:

ok single line: '133805'

Test #6:

score: 0
Accepted
time: 29ms
memory: 18976kb

input:

1000
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
174
...

output:

0

result:

ok single line: '0'

Test #7:

score: 0
Accepted
time: 24ms
memory: 19000kb

input:

1000
1
3
5
9
10
11
12
13
19
20
22
23
24
26
28
29
30
31
32
33
37
38
40
41
43
44
46
47
48
50
51
58
60
63
64
68
72
73
82
83
85
87
88
90
91
92
93
95
98
99
100
101
105
110
113
117
118
122
123
124
125
126
127
128
131
132
134
135
140
141
142
143
144
150
153
154
155
157
158
160
161
164
167
168
171
173
177
1...

output:

1000

result:

ok single line: '1000'

Test #8:

score: 0
Accepted
time: 31ms
memory: 19124kb

input:

32000
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
174...

output:

0

result:

ok single line: '0'

Test #9:

score: 0
Accepted
time: 29ms
memory: 18860kb

input:

16000
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
10...

output:

0

result:

ok single line: '0'

Test #10:

score: 0
Accepted
time: 22ms
memory: 18976kb

input:

16000
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
10...

output:

1

result:

ok single line: '1'

Test #11:

score: 0
Accepted
time: 26ms
memory: 18932kb

input:

16001
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
10...

output:

2

result:

ok single line: '2'

Test #12:

score: 0
Accepted
time: 31ms
memory: 19084kb

input:

11000
1
2
3
4
5
6
7
8
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
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
74
75
76
77
78
79
80
81
82
83
84
85
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
1...

output:

39908

result:

ok single line: '39908'

Test #13:

score: 0
Accepted
time: 25ms
memory: 19528kb

input:

50000
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
62
64
66
68
70
72
74
76
78
80
82
84
86
88
90
92
94
96
98
100
102
104
106
108
110
112
114
116
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
150
152
154
156
158
160
162
164
166
168
170
172
174...

output:

0

result:

ok single line: '0'