QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#115505#6628. Flip it and Stick itznstz#9 3ms3932kbC++141.5kb2023-06-26 10:44:182024-05-31 14:14:51

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 1
Accepted

Test #1:

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

input:

1
0

output:

0

result:

ok 1 number(s): "0"

Test #2:

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

input:

1
1

output:

-1

result:

ok 1 number(s): "-1"

Test #3:

score: 1
Accepted
time: 3ms
memory: 3720kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

-1

result:

ok 1 number(s): "-1"

Test #4:

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

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

0

result:

ok 1 number(s): "0"

Test #5:

score: 1
Accepted
time: 3ms
memory: 3856kb

input:

101001000011101010101001001010010110111111001100110001111101111110110110101011111010001101111001101101010111101100000110001110001100000101111100000110111110001010101101101110001000011010000101000110110010110110100001110001111001010000000010000000101000000100110011101110100111111101111111111110010101...

output:

-1

result:

ok 1 number(s): "-1"

Test #6:

score: 1
Accepted
time: 3ms
memory: 3864kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: 1
Accepted
time: 2ms
memory: 3904kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

-1

result:

ok 1 number(s): "-1"

Subtask #2:

score: 3
Accepted

Test #8:

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

input:

0
01

output:

0

result:

ok 1 number(s): "0"

Test #9:

score: 3
Accepted
time: 0ms
memory: 3740kb

input:

0
10

output:

0

result:

ok 1 number(s): "0"

Test #10:

score: 3
Accepted
time: 1ms
memory: 3656kb

input:

01
01

output:

1

result:

ok 1 number(s): "1"

Test #11:

score: 3
Accepted
time: 0ms
memory: 3580kb

input:

01
10

output:

0

result:

ok 1 number(s): "0"

Test #12:

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

input:

1010101010
10

output:

5

result:

ok 1 number(s): "5"

Test #13:

score: 3
Accepted
time: 3ms
memory: 3792kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

0

result:

ok 1 number(s): "0"

Test #14:

score: 3
Accepted
time: 0ms
memory: 3788kb

input:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

0

result:

ok 1 number(s): "0"

Test #15:

score: 3
Accepted
time: 3ms
memory: 3908kb

input:

010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101...

output:

100000

result:

ok 1 number(s): "100000"

Test #16:

score: 3
Accepted
time: 3ms
memory: 3840kb

input:

000110111001011000010001010010010000010100100000011101010000001000110011100000011011100101110110000001000000000011001010001101001110011111001101110010001100000000010000000100100011000111010011100110011101100011000100011001010000010001001010010101100000100000010010110000000001011100100001000010100100...

output:

43860

result:

ok 1 number(s): "43860"

Test #17:

score: 3
Accepted
time: 3ms
memory: 3848kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

44072

result:

ok 1 number(s): "44072"

Subtask #3:

score: 0
Wrong Answer

Dependency #2:

100%
Accepted

Test #18:

score: 4
Accepted
time: 0ms
memory: 3724kb

input:

0
01

output:

0

result:

ok 1 number(s): "0"

Test #19:

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

input:

0
10

output:

0

result:

ok 1 number(s): "0"

Test #20:

score: 4
Accepted
time: 1ms
memory: 3644kb

input:

01
01

output:

1

result:

ok 1 number(s): "1"

Test #21:

score: 4
Accepted
time: 0ms
memory: 3584kb

input:

01
10

output:

0

result:

ok 1 number(s): "0"

Test #22:

score: 4
Accepted
time: 0ms
memory: 3600kb

input:

1
00

output:

0

result:

ok 1 number(s): "0"

Test #23:

score: 4
Accepted
time: 1ms
memory: 3656kb

input:

1
11

output:

0

result:

ok 1 number(s): "0"

Test #24:

score: 4
Accepted
time: 0ms
memory: 3600kb

input:

10
00

output:

0

result:

ok 1 number(s): "0"

Test #25:

score: 0
Wrong Answer
time: 0ms
memory: 3688kb

input:

11
11

output:

1

result:

wrong answer 1st numbers differ - expected: '-1', found: '1'

Subtask #4:

score: 5
Accepted

Test #40:

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

input:

11
011

output:

0

result:

ok 1 number(s): "0"

Test #41:

score: 5
Accepted
time: 1ms
memory: 3724kb

input:

0
110

output:

0

result:

ok 1 number(s): "0"

Test #42:

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

input:

01
100

output:

0

result:

ok 1 number(s): "0"

Test #43:

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

input:

110
110

output:

1

result:

ok 1 number(s): "1"

Test #44:

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

input:

010
001

output:

0

result:

ok 1 number(s): "0"

Test #45:

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

input:

001001001001
001

output:

4

result:

ok 1 number(s): "4"

Test #46:

score: 5
Accepted
time: 3ms
memory: 3908kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

0

result:

ok 1 number(s): "0"

Test #47:

score: 5
Accepted
time: 3ms
memory: 3792kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

0

result:

ok 1 number(s): "0"

Test #48:

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

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

24856

result:

ok 1 number(s): "24856"

Test #49:

score: 5
Accepted
time: 3ms
memory: 3916kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

0

result:

ok 1 number(s): "0"

Test #50:

score: 5
Accepted
time: 3ms
memory: 3852kb

input:

010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010010...

output:

62521

result:

ok 1 number(s): "62521"

Test #51:

score: 5
Accepted
time: 3ms
memory: 3848kb

input:

011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011...

output:

66666

result:

ok 1 number(s): "66666"

Test #52:

score: 5
Accepted
time: 3ms
memory: 3932kb

input:

110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110...

output:

66666

result:

ok 1 number(s): "66666"

Subtask #5:

score: 0
Wrong Answer

Test #53:

score: 5
Accepted
time: 1ms
memory: 3640kb

input:

11
011

output:

0

result:

ok 1 number(s): "0"

Test #54:

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

input:

01
100

output:

0

result:

ok 1 number(s): "0"

Test #55:

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

input:

011
011

output:

1

result:

ok 1 number(s): "1"

Test #56:

score: 5
Accepted
time: 1ms
memory: 3656kb

input:

010
100

output:

0

result:

ok 1 number(s): "0"

Test #57:

score: 5
Accepted
time: 1ms
memory: 3668kb

input:

0
010

output:

0

result:

ok 1 number(s): "0"

Test #58:

score: 5
Accepted
time: 1ms
memory: 3652kb

input:

10
101

output:

0

result:

ok 1 number(s): "0"

Test #59:

score: 5
Accepted
time: 1ms
memory: 3660kb

input:

010
010

output:

1

result:

ok 1 number(s): "1"

Test #60:

score: 5
Accepted
time: 1ms
memory: 3652kb

input:

000
101

output:

0

result:

ok 1 number(s): "0"

Test #61:

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

input:

001001001001
100

output:

3

result:

ok 1 number(s): "3"

Test #62:

score: 5
Accepted
time: 3ms
memory: 3904kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

0

result:

ok 1 number(s): "0"

Test #63:

score: 5
Accepted
time: 3ms
memory: 3788kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

0

result:

ok 1 number(s): "0"

Test #64:

score: 5
Accepted
time: 3ms
memory: 3848kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

25010

result:

ok 1 number(s): "25010"

Test #65:

score: 5
Accepted
time: 3ms
memory: 3784kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

0

result:

ok 1 number(s): "0"

Test #66:

score: 5
Accepted
time: 3ms
memory: 3788kb

input:

110001101111100110100110010110111101001001110110101110011010011000101000011001110011100111110111100001111111101011001001010111001100001001000001010000100010001001010101000101100011110110001100101110101101001100011101110111011110000111111110110110001001001100110110111001010001111111101100111011111011...

output:

62502

result:

ok 1 number(s): "62502"

Test #67:

score: 5
Accepted
time: 3ms
memory: 3928kb

input:

011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011011...

output:

66666

result:

ok 1 number(s): "66666"

Test #68:

score: 5
Accepted
time: 3ms
memory: 3908kb

input:

110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110110...

output:

66666

result:

ok 1 number(s): "66666"

Test #69:

score: 0
Wrong Answer
time: 3ms
memory: 3844kb

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

22345

result:

wrong answer 1st numbers differ - expected: '11173', found: '22345'

Subtask #6:

score: 0
Skipped

Dependency #4:

100%
Accepted

Dependency #5:

0%