[BOJ] 23290번: 마법사 상어와 복제
/* 23290번: 마법사 상어와 복제 https://www.acmicpc.net/problem/23290 */ #include #include #define MAP_SIZE 4 using namespace std; #define sync_off \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL); int m; int s; // 4*4 격자칸에 / 8개 방향의 물고기가 몇 마리 들었는지 적재 vector vMap(MAP_SIZE, vector(MAP_SIZE, vector(8, 0))); //←, ↖, ↑, ↗, →, ↘, ↓, ↙ int dy[8] = {0, -1, -1, -1, 0, 1, 1, 1}; int dx[8] = {-1..
2023. 4. 25.