QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#86322#4106. 硬币游戏hydd100 ✓281ms1876kbC++141.1kb2023-03-09 17:57:202023-03-09 17:57:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 10
Accepted
time: 1ms
memory: 1728kb

input:

100
16 14
1 0 0 1 0 0 0 0 1 0 0 0 1 0 1 1
16 14
0 1 0 0 0 1 1 1 1 1 1 0 1 0 0 1
16 11
0 1 0 0 0 1 1 1 0 1 0 0 0 1 0 1
16 12
1 1 1 1 1 1 1 1 0 0 1 1 0 1 1 0
16 4
1 0 0 1 0 0 1 0 0 0 0 1 0 1 1 0
16 20
0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0
16 5
0 1 1 1 1 0 0 1 1 0 0 0 1 0 1 0
16 18
0 1 0 1 1 0 0 1 0 1 1 1 1 ...

output:

win
lose
win
lose
win
win
lose
lose
win
win
win
win
lose
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
lose
win
win
win
win
lose
lose
win
win
...

result:

ok 100 lines

Test #2:

score: 10
Accepted
time: 1ms
memory: 1488kb

input:

100
32 7
0 0 1 1 1 0 1 1 1 0 0 0 0 0 1 1 0 1 1 0 0 0 1 1 1 1 0 0 1 1 0 1
32 3
1 0 1 0 0 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 0 1 1 1 1 0 0 0 1 0 1
32 12
0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0
32 9
1 1 1 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 1 0 1 1 0 0 1 1 1 0 1 1 0 0
32 1
1 1 0 1 0 1 1 ...

output:

win
win
win
win
win
lose
win
win
win
win
lose
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
lose
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
...

result:

ok 100 lines

Test #3:

score: 10
Accepted
time: 1ms
memory: 1468kb

input:

100
36 9
0 0 1 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 0 1 0 0 1 0 1 0 1 1 0 1
36 20
1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 1 0 1 0 0 0 1 0 1 0
36 10
1 0 0 1 0 1 1 0 0 1 0 0 1 0 1 1 1 0 0 1 0 1 0 1 1 0 0 0 0 1 0 1 0 1 0 0
36 7
0 1 1 0 1 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 1 0 0 1 1 1 1 1 ...

output:

win
win
lose
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
lose
win
lose
lose
win
win
win
win
win
lose
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win...

result:

ok 100 lines

Test #4:

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

input:

100
40 17
0 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 0 1 1 1 1 0 0 0 1 0 0 0 0 1 0 1 1 1 1 0 0 1 0 1
40 11
0 1 1 1 0 1 1 1 0 0 1 1 0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 0 0 1 0 0 0 0 1 1 1
40 6
0 1 0 1 1 1 0 0 0 0 1 0 0 0 1 1 0 1 1 0 1 0 0 0 1 1 0 0 0 0 1 1 1 1 1 1 1 0 0 0
40 19
1 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1...

output:

win
lose
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
lose
lose
win
win
win
lose
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
lose
win
win
win
win
win
lose
lose
lose
win
lose
win...

result:

ok 100 lines

Test #5:

score: 10
Accepted
time: 94ms
memory: 1736kb

input:

100
10000 1
0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 1 1 1 1 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 1 1 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 0 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 1 1 0 0 1 1 0 0 1 1 1 1 1 1 0 0 0 0 1 1 ...

output:

win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
wi...

result:

ok 100 lines

Test #6:

score: 10
Accepted
time: 170ms
memory: 1876kb

input:

100
20000 1
1 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 0 1 1 0 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 1 0 0 1 0 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 ...

output:

win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
w...

result:

ok 100 lines

Test #7:

score: 10
Accepted
time: 255ms
memory: 1720kb

input:

100
30000 1
1 1 0 1 1 0 1 0 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 1 1 0 0 0 0 1 1 1 1 1 1 1 0 1 1 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 1 1 1 1 1 1 0 1 0 1 0 0 1 0 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 1 1 0 0 1 1 1 0 0 1 0 1 0 1 0 1 1 1 1 1 0 0 1 0 1 1 0 1 1 1 1 1 0 0 1 0 0 0 0 1 1 0 1 1 1 0 0 ...

output:

win
win
win
win
win
lose
win
win
win
win
win
lose
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
w...

result:

ok 100 lines

Test #8:

score: 10
Accepted
time: 102ms
memory: 1504kb

input:

100
10000 10
1 0 0 1 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 0 0 1 1 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1 1 1 0 1 1 1 0 1 0 1 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 1 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 0 1 1...

output:

win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
wi...

result:

ok 100 lines

Test #9:

score: 10
Accepted
time: 177ms
memory: 1492kb

input:

100
20000 20
1 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 0 1 1 1 0 0 1 0 1 1 0 0 1 0 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 1 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0 0 1 0 0 1 1 1 1 0 1 1 0 0 1 1 0 0 0 1...

output:

win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
lose
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
wi...

result:

ok 100 lines

Test #10:

score: 10
Accepted
time: 281ms
memory: 1760kb

input:

100
30000 4
0 1 0 1 0 0 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 1 1 1 1 1 1 0 0 0 1 1 1 0 0 1 0 1 1 1 1 1 0 0 1 0 1 0 1 0 0 0 1 1 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 1 0 0 0 1 0 1 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 1 1 ...

output:

win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
win
...

result:

ok 100 lines