QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#95423#1245. Three ballsHuangHanShengTL 705ms16396kbC++203.4kb2023-04-09 17:11:262023-04-09 17:11:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 16260kb

input:

3
1 000
1 100
0 111

output:

7

result:

ok answer is '7'

Test #2:

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

input:

5
2 10110
0 11010
1 00000

output:

19

result:

ok answer is '19'

Test #3:

score: 0
Accepted
time: 9ms
memory: 16268kb

input:

3
2 011
0 100
3 010

output:

8

result:

ok answer is '8'

Test #4:

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

input:

5
1 11010
3 00001
4 01011

output:

32

result:

ok answer is '32'

Test #5:

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

input:

1
1 1
1 1
1 0

output:

2

result:

ok answer is '2'

Test #6:

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

input:

1
1 0
0 1
1 0

output:

2

result:

ok answer is '2'

Test #7:

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

input:

10
4 0001001011
6 0000011100
4 1011000101

output:

969

result:

ok answer is '969'

Test #8:

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

input:

15
4 110001100010010
11 101101011011001
0 001110001001110

output:

32227

result:

ok answer is '32227'

Test #9:

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

input:

15
9 011001010111000
7 101000010111010
9 010000110010010

output:

31656

result:

ok answer is '31656'

Test #10:

score: 0
Accepted
time: 2ms
memory: 16208kb

input:

15
15 011010001011011
6 101000010001001
6 000010111110010

output:

32768

result:

ok answer is '32768'

Test #11:

score: 0
Accepted
time: 7ms
memory: 16200kb

input:

15
0 100010010001000
0 011100000001011
0 100000100111111

output:

3

result:

ok answer is '3'

Test #12:

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

input:

14
0 11101010011000
0 11101010011000
0 11101010011000

output:

1

result:

ok answer is '1'

Test #13:

score: 0
Accepted
time: 8ms
memory: 16260kb

input:

37
28 1001101111100111110011111100101110110
32 1001011110011111110100111110100110010
21 1001000111000000110011000001100011111

output:

438952513

result:

ok answer is '438952513'

Test #14:

score: 0
Accepted
time: 2ms
memory: 16252kb

input:

37
21 0101010101010101010101010101010101010
20 0011001100110011001100110011001100110
22 0000111100001111000011110000111100001

output:

16781879

result:

ok answer is '16781879'

Test #15:

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

input:

36
14 001110110001000000000111001011111101
13 100000010110111010011100111111010100
12 011111111010110111110010110011100100

output:

765072297

result:

ok answer is '765072297'

Test #16:

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

input:

1500
653 101110010010011101100010011000000111010100100001101000000010010011001011101111100111100101000111001110000011111110011010101011111101001011011001100010100100101100100101000010001101011111100001010000101000100110110001011011001111100001010110101000000111010111001011110011110100110101111111110...

output:

979972096

result:

ok answer is '979972096'

Test #17:

score: 0
Accepted
time: 11ms
memory: 16224kb

input:

1500
1207 01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101...

output:

247669529

result:

ok answer is '247669529'

Test #18:

score: 0
Accepted
time: 278ms
memory: 16220kb

input:

1500
941 010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010...

output:

79895166

result:

ok answer is '79895166'

Test #19:

score: 0
Accepted
time: 9ms
memory: 16272kb

input:

1499
456 011101011010100010100001001011011101110111010101011100011111011000000010100101010011011010110000111010110011101101100001110101000110111011110111111011101111001111011111011111011101000011001111110110011100101001111000110111001100101111011011110100000010010111011001101010001011000010111111001...

output:

552712832

result:

ok answer is '552712832'

Test #20:

score: 0
Accepted
time: 13ms
memory: 16324kb

input:

1500
691 000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

64511838

result:

ok answer is '64511838'

Test #21:

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

input:

1500
611 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

922073180

result:

ok answer is '922073180'

Test #22:

score: 0
Accepted
time: 8ms
memory: 16260kb

input:

1500
899 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

704491497

result:

ok answer is '704491497'

Test #23:

score: 0
Accepted
time: 48ms
memory: 16268kb

input:

1500
741 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

492637609

result:

ok answer is '492637609'

Test #24:

score: 0
Accepted
time: 123ms
memory: 16384kb

input:

10000
4981 0011101110100100111100011000101000111100111101000011101011001100100010101001100000100101110010100000010010101011000010100001000001000000101101000101000111010001000111001100100101100000100011010101010110011011100010111011000100010001010001100001010110110100100111011101110010110100010011001...

output:

959078599

result:

ok answer is '959078599'

Test #25:

score: 0
Accepted
time: 106ms
memory: 16360kb

input:

10000
5459 0000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110000111100001111000011110...

output:

344807402

result:

ok answer is '344807402'

Test #26:

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

input:

9999
1209 10110111111110000100110101111100010100000010000110110010011001111001110101110110000000000011001001110010101010011001100100001001110100010011100000110010101000100111100011000110001100010101011111001111010111110011111011110100100010101111111100111001001100000000001100000001001000001110001001...

output:

65860179

result:

ok answer is '65860179'

Test #27:

score: 0
Accepted
time: 38ms
memory: 16272kb

input:

10000
1017 1101000001010000010010101100011111001101011000111010110101001110111001111000010110100110001010111010001010100100110011001010000111100000001010000010011010010111101010001001100001110110001101010101111000101100100011110100000011000101011101110001101110110010011110100010110000001110011110110...

output:

42195644

result:

ok answer is '42195644'

Test #28:

score: 0
Accepted
time: 325ms
memory: 16324kb

input:

10000
9389 0110011010110001101100101101100100101110101000101111010000100100100000101111010111010010100100010100110011101011101001111101011111000110000000101000001111100110011100011010100010011010101000000110001001001100011000011000101000010011110000001111101011011101011100111010001100011100001111000...

output:

905611805

result:

ok answer is '905611805'

Test #29:

score: 0
Accepted
time: 71ms
memory: 16324kb

input:

10000
427 00100011101100111001011001111110000110011011101000000010110111010000011000110111111110000110101001100010001010111101111110101100110101111100110110110100000101000001001010110001111100110101100011101011010100111011100111100001011010011000101011101000101010010011001100101000011110000000101000...

output:

307932648

result:

ok answer is '307932648'

Test #30:

score: 0
Accepted
time: 7ms
memory: 16396kb

input:

10000
493 11010111000000100111101101110111100010010011011100100110100011100010111011111100100101001101000101001111100000110000100011011001000101110101100101101010010010100001010010100000110100011000011110010110101101011001010111001111110110000001101010010111111011100000011111110010111111011100110111...

output:

474080436

result:

ok answer is '474080436'

Test #31:

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

input:

9999
500 000100110101010110100100011010011000001110100101100001100110111100000110101100010001100001100100100100010011011111001101110000010100100000111001010101001010011000011101010101011000111111100100001010000010110101111000110101001100000101011110010011011111011011001100110001101100000010001000101...

output:

37344147

result:

ok answer is '37344147'

Test #32:

score: 0
Accepted
time: 14ms
memory: 16392kb

input:

10000
500 01001111011100010101010001001101000111110101101010010101010111010010000101001010100101001111011111001010000111000001100110001001011011011101110000000010001000101111010011001010010001001001111100101000000101101100100010101000011001010100111111101111101001111011101111110001100110110001010101...

output:

615112513

result:

ok answer is '615112513'

Test #33:

score: 0
Accepted
time: 38ms
memory: 16336kb

input:

849
424 0101100111001111001000111010000101110011000101111111010100100100111111001101101100101010101111010001111000111111101010100000111101001011010110000001100011001000101111101100100100111000100110001100101011000100010000011101010011110111110101110010011010011011010111110010110011111111001101110101...

output:

448547897

result:

ok answer is '448547897'

Test #34:

score: 0
Accepted
time: 705ms
memory: 16248kb

input:

7500
1400 11111001101100101010010111000000001101011000101100101110000010101110000011111110001000110011001111111000110001100111101001011010001001000101001101110011011010111111110100010111100011100101011001111001000011110011011111111000100011111101101100010011010010101001111110110001010011111111010010...

output:

986734000

result:

ok answer is '986734000'

Test #35:

score: -100
Time Limit Exceeded

input:

7500
3145 11111111111001010101010111001011110000000001100010001011110101100000001001000110000101011010111110101001101100000111111100011001000000111110001011101101000001101100001011100000000011101011011011011011011000010110111101111010101110110010100111011000101001011101001000100101100101111001011111...

output:


result: