백준 14939 불 끄기 혼내주기
#include #define fastio ios::sync_with_stdio(0), cin.tie(0) using namespace std; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; const int n = 10; bool cache[1 c; if(c == 'O') arr[i][j] = true; else arr[i][j] = false; } } } void click(vector& m, int x, int y) { m[x][y] = !m[x][y]; for(int i = 0; i = n || ny = n) co..
혼내주기
2021. 7. 22. 10:58