QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#71753#5248. Wieczór gier [C]larryzhong10 ✓23ms8232kbPython3963b2023-01-12 00:45:172023-01-12 00:45:20

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 1
Accepted

Test #1:

score: 1
Accepted
time: 17ms
memory: 7912kb

input:

2 2
..
.O

O.
..

output:

0.5000000000000

result:

ok found '0.50000000000000', expected '0.50000000000000', error '0.00000000000000'

Test #2:

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

input:

2 2
.O
..

O.
..

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #3:

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

input:

2 2
O.
.O

O.
.O

output:

0.5000000000000

result:

ok found '0.50000000000000', expected '0.50000000000000', error '0.00000000000000'

Test #4:

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

input:

2 2
O.
.O

O.
O.

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #5:

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

input:

2 2
.O
OO

OO
O.

output:

0.5000000000000

result:

ok found '0.50000000000000', expected '0.50000000000000', error '0.00000000000000'

Test #6:

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

input:

2 2
OO
O.

O.
OO

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Subtask #2:

score: 1
Accepted

Test #7:

score: 1
Accepted
time: 17ms
memory: 7980kb

input:

2 1
.
O

.
O

output:

1.0000000000000

result:

ok found '1.00000000000000', expected '1.00000000000000', error '0.00000000000000'

Test #8:

score: 0
Accepted
time: 17ms
memory: 7976kb

input:

2 1
.
O

O
.

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #9:

score: 0
Accepted
time: 12ms
memory: 7988kb

input:

1 2
O.

O.

output:

1.0000000000000

result:

ok found '1.00000000000000', expected '1.00000000000000', error '0.00000000000000'

Test #10:

score: 0
Accepted
time: 12ms
memory: 8112kb

input:

1 2
.O

O.

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #11:

score: 0
Accepted
time: 15ms
memory: 7976kb

input:

3 1
.
O
.

.
O
.

output:

1.0000000000000

result:

ok found '1.00000000000000', expected '1.00000000000000', error '0.00000000000000'

Test #12:

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

input:

3 1
O
.
O

O
O
.

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #13:

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

input:

1 3
O.O

O.O

output:

1.0000000000000

result:

ok found '1.00000000000000', expected '1.00000000000000', error '0.00000000000000'

Test #14:

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

input:

1 3
.O.

..O

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Subtask #3:

score: 1
Accepted

Test #15:

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

input:

3 2
..
O.
..

..
..
.O

output:

0.2857142857143

result:

ok found '0.28571428571430', expected '0.28571428571429', error '0.00000000000001'

Test #16:

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

input:

3 2
..
O.
.O

.O
..
O.

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #17:

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

input:

2 3
O..
O.O

..O
O.O

output:

0.0952380952381

result:

ok found '0.09523809523810', expected '0.09523809523810', error '0.00000000000000'

Test #18:

score: 0
Accepted
time: 17ms
memory: 7988kb

input:

2 3
.OO
OO.

.OO
OO.

output:

0.1428571428571

result:

ok found '0.14285714285710', expected '0.14285714285714', error '0.00000000000004'

Test #19:

score: 0
Accepted
time: 16ms
memory: 8116kb

input:

3 3
OO.
.O.
O.O

.OO
.OO
..O

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #20:

score: 0
Accepted
time: 17ms
memory: 8040kb

input:

3 3
O..
.OO
OOO

OOO
OO.
..O

output:

0.0238095238095

result:

ok found '0.02380952380950', expected '0.02380952380952', error '0.00000000000002'

Test #21:

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

input:

3 3
OOO
.OO
OO.

O.O
OOO
O.O

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #22:

score: 0
Accepted
time: 17ms
memory: 8120kb

input:

3 3
OOO
OOO
O.O

OOO
.OO
OOO

output:

0.2500000000000

result:

ok found '0.25000000000000', expected '0.25000000000000', error '0.00000000000000'

Subtask #4:

score: 1
Accepted

Test #23:

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

input:

4 3
...
.O.
...
...

...
O..
...
...

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #24:

score: 0
Accepted
time: 16ms
memory: 8004kb

input:

3 3
.OO
...
O..

O..
..O
..O

output:

0.0198412698413

result:

ok found '0.01984126984130', expected '0.01984126984127', error '0.00000000000003'

Test #25:

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

input:

4 4
O...
.OO.
O..O
....

O...
O...
.O..
.O.O

output:

0.0004162504163

result:

ok found '0.00041625041630', expected '0.00041625041625', error '0.00000000000005'

Test #26:

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

input:

4 3
..O
OO.
OO.
O.O

OOO
...
O.O
.OO

output:

0.0028011204482

result:

ok found '0.00280112044820', expected '0.00280112044818', error '0.00000000000002'

Test #27:

score: 0
Accepted
time: 17ms
memory: 8040kb

input:

4 4
.OO.
....
.OO.
OO.O

..OO
O..O
O.OO
....

output:

0.0001526251526

result:

ok found '0.00015262515260', expected '0.00015262515263', error '0.00000000000003'

Subtask #5:

score: 1
Accepted

Test #28:

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

input:

4 3
...
..O
O..
...

.O.
...
.O.
...

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #29:

score: 0
Accepted
time: 19ms
memory: 8036kb

input:

3 3
...
..O
OOO

O..
OO.
.O.

output:

0.0142857142857

result:

ok found '0.01428571428570', expected '0.01428571428571', error '0.00000000000001'

Test #30:

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

input:

4 3
.OO
O.O
O..
..O

...
OOO
...
OOO

output:

0.0021008403361

result:

ok found '0.00210084033610', expected '0.00210084033613', error '0.00000000000003'

Test #31:

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

input:

4 4
.O.O
O..O
....
OOOO

..O.
OO..
..OO
.OOO

output:

0.0001578282828

result:

ok found '0.00015782828280', expected '0.00015782828283', error '0.00000000000003'

Test #32:

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

input:

4 4
OO.O
...O
.OO.
.OO.

..O.
.OOO
OOO.
...O

output:

0.0001578282828

result:

ok found '0.00015782828280', expected '0.00015782828283', error '0.00000000000003'

Subtask #6:

score: 1
Accepted

Test #33:

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

input:

4 5
O..O.
.O..O
.OO..
...OO

..OO.
...O.
O.O.O
..OO.

output:

0.0000182455116

result:

ok found '0.00001824551160', expected '0.00001824551160', error '0.00000000000000'

Test #34:

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

input:

5 4
...O
....
OOOO
....
OO.O

O..O
...O
..OO
....
O.OO

output:

0.0000131773139

result:

ok found '0.00001317731390', expected '0.00001317731394', error '0.00000000000004'

Test #35:

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

input:

5 5
O.OO.
.....
O....
....O
O.O.O

O.O..
.O.O.
.OOO.
.....
O....

output:

0.0000019375339

result:

ok found '0.00000193753390', expected '0.00000193753391', error '0.00000000000001'

Test #36:

score: 0
Accepted
time: 18ms
memory: 7912kb

input:

5 5
...O.
O....
O....
.OO..
O..O.

.....
.O.O.
O.O..
...OO
O....

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #37:

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

input:

5 5
..O..
OOO.O
.....
....O
..O.O

...O.
..OO.
.OO..
...O.
O.O..

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #38:

score: 0
Accepted
time: 17ms
memory: 7996kb

input:

5 5
..OO.
...OO
....O
.O...
..O..

O...O
..O..
.O...
O...O
....O

output:

0.0000044577848

result:

ok found '0.00000445778480', expected '0.00000445778478', error '0.00000000000002'

Subtask #7:

score: 1
Accepted

Test #39:

score: 1
Accepted
time: 12ms
memory: 7992kb

input:

6 4
..OO
...O
...O
....
.OO.
.OO.

.O.O
..O.
OO.O
....
OO..
....

output:

0.0000033947097

result:

ok found '0.00000339470970', expected '0.00000339470968', error '0.00000000000002'

Test #40:

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

input:

4 6
O.....
.O.O..
..O.O.
OOO...

...O..
....O.
.O.OOO
....OO

output:

0.0000023145748

result:

ok found '0.00000231457480', expected '0.00000231457478', error '0.00000000000002'

Test #41:

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

input:

6 6
O..O..
.OO.O.
.O....
....OO
......
......

......
......
..O...
.OO...
.OOOOO
......

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #42:

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

input:

6 6
.O....
...O..
..O...
O.O...
O..O..
......

O.O...
...O..
..OO..
......
......
O..O..

output:

0.0000002230642

result:

ok found '0.00000022306420', expected '0.00000022306425', error '0.00000000000005'

Test #43:

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

input:

6 6
....O.
O...O.
......
.OOO..
......
O.O...

.O...O
.O....
......
....O.
O...O.
.O.O..

output:

0.0000000681585

result:

ok found '0.00000006815850', expected '0.00000006815852', error '0.00000000000002'

Test #44:

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

input:

6 6
...O..
.OO..O
.O....
...O..
O.....
.O....

.O...O
..O...
O...OO
......
....O.
O.....

output:

0.0000000712566

result:

ok found '0.00000007125660', expected '0.00000007125663', error '0.00000000000003'

Subtask #8:

score: 1
Accepted

Test #45:

score: 1
Accepted
time: 11ms
memory: 8016kb

input:

7 2
.O
.O
O.
.O
OO
..
O.

.O
O.
OO
O.
.O
O.
..

output:

0.0007974481659

result:

ok found '0.00079744816590', expected '0.00079744816587', error '0.00000000000003'

Test #46:

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

input:

1 7
OOO.OOO

OOO.OOO

output:

0.3333333333333

result:

ok found '0.33333333333330', expected '0.33333333333333', error '0.00000000000003'

Test #47:

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

input:

7 6
......
.O....
....O.
......
OO...O
..OO..
..O...

....O.
.OO...
...OO.
......
...O..
.O....
.....O

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #48:

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

input:

6 7
.......
...O..O
...O..O
.OO.O..
.......
.......

....OO.
...O...
.......
......O
..O..O.
....O..

output:

0.0000000807265

result:

ok found '0.00000008072650', expected '0.00000008072654', error '0.00000000000004'

Test #49:

score: 0
Accepted
time: 18ms
memory: 8048kb

input:

7 7
...O...
.......
.......
.O....O
.O...O.
.......
.OOO...

.....O.
....O..
.......
O.O....
O......
...O.O.
....O..

output:

0.0000000049216

result:

ok found '0.00000000492160', expected '0.00000000492155', error '0.00000000000005'

Test #50:

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

input:

7 7
..O....
O...O..
.......
.....O.
.O.O...
....OO.
.......

.O..O.O
..OO...
......O
O......
.......
.......
..O....

output:

0.0000000043537

result:

ok found '0.00000000435370', expected '0.00000000435368', error '0.00000000000002'

Subtask #9:

score: 1
Accepted

Test #51:

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

input:

8 1
.
.
.
.
.
O
.
.

.
O
.
.
.
.
.
.

output:

0.2857142857143

result:

ok found '0.28571428571430', expected '0.28571428571429', error '0.00000000000001'

Test #52:

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

input:

7 1
.
.
O
.
.
.
.

.
.
.
.
O
.
.

output:

0.3333333333333

result:

ok found '0.33333333333330', expected '0.33333333333333', error '0.00000000000003'

Test #53:

score: 0
Accepted
time: 17ms
memory: 8232kb

input:

8 8
........
........
........
........
....O...
........
........
........

........
........
........
.......O
........
........
........
........

output:

0.0267857142857

result:

ok found '0.02678571428570', expected '0.02678571428571', error '0.00000000000001'

Test #54:

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

input:

8 8
........
...O....
........
...O....
........
...O....
........
........

........
O.......
...O....
........
........
...O....
........
........

output:

0.0000519377502

result:

ok found '0.00005193775020', expected '0.00005193775025', error '0.00000000000005'

Test #55:

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

input:

8 8
.....O..
........
.O..O...
O.......
........
.O......
........
........

........
..O.....
.......O
.....O..
.O......
O.......
........
........

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #56:

score: 0
Accepted
time: 12ms
memory: 8108kb

input:

8 8
..O.....
........
.O....O.
O.O...O.
......O.
........
........
........

.......O
.....O.O
......O.
........
........
........
...O.O..
O.......

output:

0.0000000030500

result:

ok found '0.00000000305000', expected '0.00000000305004', error '0.00000000000004'

Test #57:

score: 0
Accepted
time: 23ms
memory: 8144kb

input:

8 8
OOOO....
OOOO....
........
........
........
........
........
........

OO......
OO......
OO......
OO......
........
........
........
........

output:

0.0000000001089

result:

ok found '0.00000000010890', expected '0.00000000010893', error '0.00000000000003'

Subtask #10:

score: 1
Accepted

Test #58:

score: 1
Accepted
time: 14ms
memory: 8000kb

input:

1 8
OOOOOOO.

O.OOOOOO

output:

0.2857142857143

result:

ok found '0.28571428571430', expected '0.28571428571429', error '0.00000000000001'

Test #59:

score: 0
Accepted
time: 20ms
memory: 7980kb

input:

1 7
OOOOOO.

OOO.OOO

output:

0

result:

ok found '0.00000000000000', expected '0.00000000000000', error '-0.00000000000000'

Test #60:

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

input:

8 8
........
.....O..
........
........
...O....
........
........
........

.....O..
........
........
........
........
........
O.......
........

output:

0.0008640552995

result:

ok found '0.00086405529950', expected '0.00086405529954', error '0.00000000000004'

Test #61:

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

input:

8 8
........
........
......O.
.....O..
........
........
...O....
..O.....

........
....O...
........
........
....O...
.....O..
........
....O...

output:

0.0000035412102

result:

ok found '0.00000354121020', expected '0.00000354121024', error '0.00000000000004'

Test #62:

score: 0
Accepted
time: 12ms
memory: 7992kb

input:

8 8
.....O..
O.......
........
.......O
........
...O....
........
.OO.....

........
...O....
........
.O......
........
........
.O.O....
....OO..

output:

0.0000000275956

result:

ok found '0.00000002759560', expected '0.00000002759564', error '0.00000000000004'

Test #63:

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

input:

8 8
.......O
........
....O...
......O.
..O.....
.....O..
.OO.....
....O...

........
O...O...
........
......O.
..O...O.
.O..O...
..O.....
........

output:

0.0000000005265

result:

ok found '0.00000000052650', expected '0.00000000052650', error '0.00000000000000'

Test #64:

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

input:

8 8
OOOOOOOO
........
........
........
........
........
........
........

........
.O....O.
..O.....
...O....
....O...
.....O..
.O....O.
........

output:

0.0000000005810

result:

ok found '0.00000000058100', expected '0.00000000058096', error '0.00000000000004'

Extra Test:

score: 0
Extra Test Passed