QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#246803#1702. Train Tracking 2GMBox100 ✓8ms3836kbC++171.4kb2023-11-11 09:43:352023-11-11 09:43:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 5.88235
Accepted
time: 1ms
memory: 3464kb

input:

4 2
999999998
999999999
999999998

output:

3

result:

ok single line: '3'

Test #2:

score: 5.88235
Accepted
time: 3ms
memory: 3668kb

input:

100000 10240
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
523376738
5233767...

output:

407200020

result:

ok single line: '407200020'

Test #3:

score: 5.88235
Accepted
time: 4ms
memory: 3780kb

input:

100000 5000
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
357460681
35746068...

output:

707086060

result:

ok single line: '707086060'

Test #4:

score: 5.88235
Accepted
time: 5ms
memory: 3796kb

input:

100000 5000
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
879650296
87965029...

output:

340064806

result:

ok single line: '340064806'

Test #5:

score: 5.88235
Accepted
time: 7ms
memory: 3736kb

input:

100000 5000
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
254530145
25453014...

output:

933421891

result:

ok single line: '933421891'

Test #6:

score: 5.88235
Accepted
time: 8ms
memory: 3564kb

input:

100000 5000
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
730947826
73094782...

output:

839173034

result:

ok single line: '839173034'

Test #7:

score: 5.88235
Accepted
time: 8ms
memory: 3680kb

input:

100000 5000
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
488068178
48806817...

output:

455349494

result:

ok single line: '455349494'

Test #8:

score: 5.88235
Accepted
time: 7ms
memory: 3836kb

input:

100000 30000
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
375192454
3751924...

output:

10447880

result:

ok single line: '10447880'

Test #9:

score: 5.88235
Accepted
time: 1ms
memory: 3504kb

input:

1000 1
466744892
466744892
466744892
466744892
466744892
466744892
466744892
466744892
770990393
770990393
770990393
770990393
770990393
770990393
770990393
770990393
770990393
770990393
836723861
836723861
836723861
836723861
836723861
729464583
729464583
804674640
248184007
248184007
248184007
248...

output:

1

result:

ok single line: '1'

Test #10:

score: 5.88235
Accepted
time: 0ms
memory: 3472kb

input:

1000 16
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
794061414
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
451752596
45...

output:

496202506

result:

ok single line: '496202506'

Test #11:

score: 5.88235
Accepted
time: 1ms
memory: 3532kb

input:

1000 128
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
974811987
9...

output:

288438630

result:

ok single line: '288438630'

Test #12:

score: 5.88235
Accepted
time: 1ms
memory: 3412kb

input:

1000 256
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
462365480
4...

output:

743918205

result:

ok single line: '743918205'

Test #13:

score: 5.88235
Accepted
time: 8ms
memory: 3524kb

input:

100000 20
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
915640078
547337088
547337088
547337088
547337088
477136825
477136825
477136825
477136825
477136825
477136825
...

output:

467117207

result:

ok single line: '467117207'

Test #14:

score: 5.88235
Accepted
time: 4ms
memory: 3528kb

input:

100000 80
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
884831002
...

output:

209287485

result:

ok single line: '209287485'

Test #15:

score: 5.88235
Accepted
time: 8ms
memory: 3492kb

input:

100000 320
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739
254884739...

output:

246647468

result:

ok single line: '246647468'

Test #16:

score: 5.88235
Accepted
time: 8ms
memory: 3536kb

input:

100000 1280
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
705753403
70575340...

output:

272064734

result:

ok single line: '272064734'

Test #17:

score: 5.88235
Accepted
time: 4ms
memory: 3652kb

input:

100000 5120
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
539179601
53917960...

output:

998248709

result:

ok single line: '998248709'