Problem list
Log in
#coci00642 · COCI 2022/2023 Contest 4

Diglog

Unrated 1.0 s 256 MB

Example 1

Input
3
xoooo
xoooo
oxooo
oxooo
oooxo
oooxo
Output
12
12
-3

Example 2

Input
3
xoooo
xoooo
oxooo
oxooo
ooooo
oooox
Output
8
12
-3

Example 3

Input
5
xoooo
xoooo
xoooo
oxooo
xoooo
ooxoo
xoooo
oooxo
xoooo
oooox
Output
0
20
-5
Source
COCI 2022/2023 Contest 4
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code