[C++] 16234 : 인구 이동
https://www.acmicpc.net/problem/16234 16234번: 인구 이동 N×N크기의 땅이 있고, 땅은 1×1개의 칸으로 나누어져 있다. 각각의 땅에는 나라가 하나씩 존재하며, r행 c열에 있는 나라에는 A[r][c]명이 살고 있다. 인접한 나라 사이에는 국경선이 존재한다. 모 www.acmicpc.net #include using namespace std; typedef pair pi; int n, l, r; int a[55][55]; int isTeam[55][55]; vector team; int dx[] = {0, 0, 1, -1}; int dy[] = {1, -1, 0, 0}; int ans; void findGroup(int ax, int ay) { if (isTeam[ax..