๋ฐ์ํ
https://www.acmicpc.net/problem/1726
-- INPUT --
9 12
0 0 0 0 0 0 0 0 0 0 0 1
0 1 1 1 1 0 0 1 1 1 1 0
0 0 0 0 0 0 0 1 1 1 1 0
0 1 1 1 1 0 0 1 1 1 1 0
0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 1 0
0 1 1 1 1 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 1 0
1 0 0 0 0 0 0 0 0 0 0 0
1 1 3
9 12 3
-- OUTPUT --
10
-- INPUT --
4 2
0 0
0 0
1 0
0 0
1 1 3
4 1 3
-- OUTPUT --
7
-- INPUT --
5 6
1 1 1 1 1 1
1 0 0 0 0 1
1 0 1 1 0 1
1 0 0 0 0 1
1 1 1 1 1 1
2 2 3
4 5 1
-- OUTPUT --
3
๋ฐ์ํ
'๐ Programming > Algorithm' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค] 5427 ๋ถ ๋ฐ๋ก (2) | 2021.01.07 |
---|