QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#345194#6106. Making NumberLoverInTimeWA 72ms8296kbC++202.1kb2024-03-06 15:12:492024-03-06 15:12:49

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3304 1615
6
2 3
2 4
1 1 3
2 2
1 2 4
2 1

output:

3
4
0
3

result:

ok 4 number(s): "3 4 0 3"

Test #2:

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

input:

838046 780357
10
2 1
2 2
1 2 4
2 3
2 4
1 4 5
2 5
2 6
1 1 9
2 2

output:

8
0
3
4
6
8
-1

result:

ok 7 numbers

Test #3:

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

input:

2950 9052
4
2 1
2 2
2 3
2 4

output:

9
0
5
2

result:

ok 4 number(s): "9 0 5 2"

Test #4:

score: 0
Accepted
time: 69ms
memory: 8288kb

input:

677626993975892499704039030543272430899275243910257911804799779050091046516452988178013531014268918811173939650642586439566406179191340032290242471164620397693718115937469230865639050202204033086180013798392250945514997389392089836361472892923108709052296874567465127993121832785182254870655135620662...

output:

7
9
3
6
0
4
7
1
1
4
1
5
4
5
2
1
3
8
3
8
4
9
5
8
1
5
6
1
3
9
4
7
2
2
4
1
2
0
1
8
3
7
0
8
5
9
9
4
9
4
4
4
7
1
5
6
3
0
3
7
4
6
2
4
9
6
4
8
2
0
4
4
2
0
6
4
8
4
9
9
9
0
4
6
8
1
9
6
5
8
3
1
5
4
8
8
7
7
4
0
0
6
2
0
3
9
8
6
8
2
9
2
7
6
1
4
3
8
9
6
4
8
3
5
4
7
5
7
4
1
7
5
3
9
0
9
8
9
1
5
6
8
9
8
5
5
0
1
8
0
...

result:

ok 49975 numbers

Test #5:

score: 0
Accepted
time: 72ms
memory: 8228kb

input:

511480086753564282821528855178563929745572703769018450686519315364994143491916967272893579288334926852555836951575502077626800161580974941822438484334857675128558893510619871726746734393334541554012208506864881136634075294480149999489082362631943342210952658415428622030685123950393010171647050758706...

output:

6
2
8
5
5
4
6
0
4
4
7
6
0
7
4
5
2
2
4
3
9
5
3
5
9
7
3
4
4
7
6
6
1
8
8
9
5
3
4
8
8
5
2
1
1
9
9
4
6
6
3
5
0
3
5
9
5
1
6
4
2
3
0
0
2
4
2
0
1
0
4
4
6
0
7
7
2
4
6
8
3
4
8
7
8
7
8
3
2
1
6
0
5
7
6
0
1
7
4
8
3
3
0
6
8
2
7
0
8
4
5
3
5
5
5
2
2
6
8
1
2
0
4
7
6
9
5
1
7
5
4
8
7
5
7
9
6
7
2
4
4
1
8
3
6
6
7
4
9
1
...

result:

ok 49929 numbers

Test #6:

score: 0
Accepted
time: 70ms
memory: 8296kb

input:

472330038062685403802290048373688812241446646131931548371358882106958120983785742309604463056365028053384497842197902484437459388258909692021136121000437587309020081655554248416237604736980589208691771671180049141616984590478595217573559381574160795133081222146011610538801003982869672106413196666521...

output:

1
0
7
0
7
5
8
3
3
2
4
7
0
4
1
9
1
4
7
0
4
2
6
0
5
7
2
2
7
6
3
9
4
5
9
1
0
1
6
9
4
3
2
3
9
9
1
2
6
7
1
3
0
3
9
0
3
3
8
7
2
0
5
9
5
4
1
5
3
0
2
7
7
9
2
4
2
9
9
2
8
8
7
2
1
4
0
0
9
8
7
0
9
1
4
2
4
1
0
8
2
8
5
3
5
6
3
9
5
3
3
2
2
1
7
1
5
3
1
4
5
9
2
9
7
8
2
5
7
3
6
8
6
0
5
9
8
6
0
5
0
9
9
4
4
7
5
2
9
0
...

result:

ok 50042 numbers

Test #7:

score: -100
Wrong Answer
time: 70ms
memory: 8184kb

input:

386233463881717072875581827146070520751747126770517661713166628789189627724980782503822688280432695205513144141020509128499902342551505341291338189246300115206785134828666443367135785829882467172883975489827563563779932862926264780289693656829908932995843695380306139371737193136677430867087011811629...

output:

3
4
1
9
4
5
6
9
2
7
5
6
6
3
1
3
4
1
1
8
9
8
4
9
2
6
5
8
6
2
6
5
2
0
9
2
6
2
5
1
0
7
4
0
0
8
6
3
2
1
1
8
7
0
8
2
9
7
4
7
8
0
4
4
4
1
6
2
3
5
2
5
7
4
7
5
2
8
5
6
7
9
8
3
4
6
6
5
4
6
6
2
6
3
9
8
8
9
1
1
8
0
3
5
8
1
9
2
8
8
3
7
6
8
3
3
7
1
8
7
6
4
4
3
5
1
9
7
0
8
7
4
7
5
2
1
3
3
9
4
0
1
4
7
9
8
2
8
2
1
...

result:

wrong answer 19797th numbers differ - expected: '9', found: '8'