File upload

🎨AI Resource Generation

No prompt

가죽 패턴 변경하기 (심화)

profile
Time limitMemory limit
1 sec128 MB
📃 Problem
💻 Input
🖨️ Output

💻 Sample Input 1
6 16
................
..XXXX....XXX...
...XXXX....XX...
.XXXX......XXX..
........XXXXX...
..XXX....XXX....
🖨️ Sample Output 1
4

Source: USACO 2011 November Contest, Silver Division Problem 1. Cow Beauty Pageant (Silver Level)