QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505477#5861. RPIxiaowuc120 ✓3ms3880kbC++173.4kb2024-08-05 05:38:312024-08-05 05:38:31

详细

Subtask #1:

score: 8
Accepted

Test #1:

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

input:

20
3
.10
0.1
10.
4
.11.
0.00
01.1
.10.
10
..0.0..0..
......10..
1....1..1.
....1...0.
1..0......
..0......0
.0......1.
11.......1
..01..0...
.....1.0..
8
.0010110
1.1100.0
10.10110
000.10.1
1110.110
01010.11
0.0.00.1
1110100.
7
.010111
1.1..1.
00.1.0.
1.0.0..
0..1.1.
001.0.0
0....1.
6
..10..
...001
...

output:

Case #1:
0.50000000000000000
0.50000000000000000
0.50000000000000000
Case #2:
0.64583333333333326
0.36805555555555552
0.60416666666666663
0.39583333333333331
Case #3:
0.40277777777777773
0.73958333333333337
0.48611111111111105
0.45833333333333331
0.27083333333333331
0.33333333333333331
0.45833333333...

result:

ok correct! (20 test cases)

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 3ms
memory: 3880kb

input:

20
3
.10
0.1
10.
4
.11.
0.00
01.1
.10.
91
..10.01010001.10111101.1001111010.100..11.0.0.1.101011.111.01...11001.1110.11.1111110.11001
....00..1.111.101.11110.10.111100110.001110111.1111000..1.00.111.01.101010.1001.1.01.011.00
0..0.000000.000.00.0.1100000..00000100000.000000000001100.0.0000.00100000....

output:

Case #1:
0.50000000000000000
0.50000000000000000
0.50000000000000000
Case #2:
0.64583333333333326
0.36805555555555552
0.60416666666666663
0.39583333333333331
Case #3:
0.53356664274510557
0.53661141565443404
0.40895791359095318
0.52000148020384951
0.55910094160374957
0.52072642955506931
0.53279341692...

result:

ok correct! (20 test cases)

Extra Test:

score: 0
Extra Test Passed