QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#748023#8994. Rhythm Flowucup-team4645#AC ✓10ms3752kbC++231.1kb2024-11-14 19:05:082024-11-14 19:05:09

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3604kb

input:

3 4
100
200
300
99
201
240
323

output:

20

result:

ok single line: '20'

Test #2:

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

input:

4 3
1000
2000
2500
3000
1103
2598
4000

output:

2

result:

ok single line: '2'

Test #3:

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

input:

2 2
100
144
56
100

output:

7

result:

ok single line: '7'

Test #4:

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

input:

1 1
1
103

output:

2

result:

ok single line: '2'

Test #5:

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

input:

1 1
1000000000
999999957

output:

4

result:

ok single line: '4'

Test #6:

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

input:

2000 2000
173738194
173738195
173738196
173738197
173738198
173738199
173738200
173738201
173738202
173738203
173738204
173738205
173738206
173738207
173738208
173738209
173738210
173738211
173738212
173738213
173738214
173738215
173738216
173738217
173738218
173738219
173738220
173738221
173738222
...

output:

10829

result:

ok single line: '10829'

Test #7:

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

input:

1 1
1
1000000000

output:

0

result:

ok single line: '0'

Test #8:

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

input:

2000 2000
891052031
891052032
891052033
891052034
891052035
891052036
891052037
891052038
891052039
891052040
891052041
891052042
891052043
891052044
891052045
891052046
891052047
891052048
891052049
891052050
891052051
891052052
891052053
891052054
891052055
891052056
891052057
891052058
891052059
...

output:

10066

result:

ok single line: '10066'

Test #9:

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

input:

2000 1000
112624313
112624314
112624315
112624316
112624317
112624318
112624319
112624320
112624321
112624322
112624323
112624324
112624325
112624326
112624327
112624328
112624329
112624330
112624331
112624332
112624333
112624334
112624335
112624336
112624337
112624338
112624339
112624340
112624341
...

output:

7000

result:

ok single line: '7000'

Test #10:

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

input:

1000 2000
932372416
932372417
932372418
932372419
932372420
932372421
932372422
932372423
932372424
932372425
932372426
932372427
932372428
932372429
932372430
932372431
932372432
932372433
932372434
932372435
932372436
932372437
932372438
932372439
932372440
932372441
932372442
932372443
932372444
...

output:

7000

result:

ok single line: '7000'

Test #11:

score: 0
Accepted
time: 10ms
memory: 3700kb

input:

2000 2000
833850553
833850625
833850712
833850715
833850755
833850810
833850837
833850849
833850893
833850988
833851047
833851112
833851172
833851212
833851307
833851309
833851314
833851341
833851427
833851494
833851549
833851555
833851572
833851666
833851724
833851813
833851838
833851916
833851994
...

output:

9676

result:

ok single line: '9676'

Test #12:

score: 0
Accepted
time: 10ms
memory: 3684kb

input:

2000 2000
394928189
394928374
394928522
394928627
394928730
394928895
394928924
394929006
394929136
394929154
394929278
394929364
394929442
394929633
394929715
394929820
394930009
394930050
394930103
394930230
394930393
394930503
394930523
394930544
394930704
394930801
394930840
394931021
394931160
...

output:

7516

result:

ok single line: '7516'

Test #13:

score: 0
Accepted
time: 10ms
memory: 3604kb

input:

2000 2000
258104173
258104205
258104243
258104263
258104288
258104313
258104321
258104367
258104408
258104430
258104476
258104514
258104558
258104568
258104576
258104625
258104657
258104662
258104699
258104703
258104721
258104771
258104775
258104801
258104810
258104846
258104858
258104883
258104884
...

output:

11570

result:

ok single line: '11570'

Test #14:

score: 0
Accepted
time: 10ms
memory: 3752kb

input:

2000 2000
221886203
221886205
221886206
221886227
221886232
221886239
221886257
221886268
221886277
221886302
221886312
221886324
221886331
221886339
221886341
221886356
221886379
221886389
221886408
221886427
221886444
221886461
221886484
221886491
221886493
221886507
221886519
221886538
221886562
...

output:

12656

result:

ok single line: '12656'

Test #15:

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

input:

3 3
100
200
216
100
156
200

output:

15

result:

ok single line: '15'