QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503780#4762. Daydreaming Stockbrokerxiaowuc1AC ✓35ms10748kbPython3408b2024-08-04 01:08:522024-08-04 01:08:53

详细

Test #1:

score: 100
Accepted
time: 7ms
memory: 10608kb

input:

6
100
200
100
150
125
300

output:

650

result:

ok single line: '650'

Test #2:

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

input:

199
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:

19900

result:

ok single line: '19900'

Test #3:

score: 0
Accepted
time: 19ms
memory: 10612kb

input:

199
199
198
197
196
195
194
193
192
191
190
189
188
187
186
185
184
183
182
181
180
179
178
177
176
175
174
173
172
171
170
169
168
167
166
165
164
163
162
161
160
159
158
157
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
...

output:

100

result:

ok single line: '100'

Test #4:

score: 0
Accepted
time: 14ms
memory: 10696kb

input:

1
100

output:

100

result:

ok single line: '100'

Test #5:

score: 0
Accepted
time: 6ms
memory: 10636kb

input:

5
101
100
101
100
101

output:

102

result:

ok single line: '102'

Test #6:

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

input:

365
86
138
462
270
192
64
92
252
64
443
201
202
170
413
339
26
39
153
310
269
493
409
129
255
64
197
331
257
352
263
386
220
160
2
64
338
229
169
428
173
445
54
203
3
453
408
76
285
430
42
223
282
395
280
245
402
112
287
162
285
29
210
215
48
172
125
83
140
412
363
240
185
209
1
240
97
430
97
347
38...

output:

2783355688

result:

ok single line: '2783355688'

Test #7:

score: 0
Accepted
time: 35ms
memory: 10720kb

input:

365
197
302
12
105
262
242
246
77
329
92
445
443
443
477
40
21
94
294
165
265
79
123
51
284
6
206
173
415
383
390
449
292
201
331
307
470
32
493
216
110
220
134
32
150
387
232
100
375
72
112
463
5
195
3
86
137
399
112
72
67
87
190
77
175
266
204
455
430
34
479
258
406
364
157
104
101
180
131
111
110...

output:

2869259335

result:

ok single line: '2869259335'

Test #8:

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

input:

365
365
171
98
166
402
163
257
378
141
344
274
457
60
294
364
250
242
283
45
19
353
407
85
155
233
405
74
199
241
438
181
140
350
337
259
147
390
297
147
121
202
186
287
8
278
168
248
398
23
383
100
375
61
232
460
101
240
420
500
57
361
285
464
50
336
144
387
295
171
456
202
99
150
440
148
408
437
2...

output:

3046850432

result:

ok single line: '3046850432'

Test #9:

score: 0
Accepted
time: 33ms
memory: 10736kb

input:

365
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
500
1
...

output:

9007000000

result:

ok single line: '9007000000'

Test #10:

score: 0
Accepted
time: 32ms
memory: 10644kb

input:

365
101
114
283
440
380
265
240
419
143
500
191
197
213
452
345
261
434
103
494
399
261
302
460
123
136
362
264
444
266
250
159
157
308
126
433
169
121
460
236
371
437
233
139
464
415
423
231
286
216
434
472
274
377
484
229
156
246
493
350
424
272
183
113
228
177
328
381
422
384
471
268
447
306
438
...

output:

100

result:

ok single line: '100'

Test #11:

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

input:

365
323
237
484
457
291
137
119
147
190
296
107
243
201
378
497
311
230
321
486
242
406
189
171
125
434
427
137
160
156
230
375
292
477
303
457
241
477
122
458
137
164
473
257
127
429
296
111
423
235
399
374
137
376
308
197
440
290
347
442
149
300
213
245
203
414
274
324
109
238
433
391
221
158
100
...

output:

1663936452

result:

ok single line: '1663936452'

Test #12:

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

input:

365
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
100
101
...

output:

396

result:

ok single line: '396'

Test #13:

score: 0
Accepted
time: 20ms
memory: 10748kb

input:

365
98
96
97
97
96
95
95
96
96
98
99
99
98
96
96
98
100
98
98
96
94
92
91
93
92
90
90
91
91
92
94
93
93
91
89
91
89
91
90
91
90
90
90
92
91
89
91
89
90
89
90
92
92
90
88
87
88
86
88
88
86
84
83
85
86
85
84
85
84
82
84
84
83
83
85
83
83
85
86
86
86
86
86
87
86
87
88
87
89
88
86
88
86
84
86
88
88
87
8...

output:

517

result:

ok single line: '517'

Test #14:

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

input:

365
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

output:

100

result:

ok single line: '100'