#include #include #include using namespace std; int n; vector info[401]; int arr[21][21]; // 1 ~ n int dx[4] = { 1,-1,0,0 }; int dy[4] = { 0,0,1,-1 }; int score[5] = { 0, 1, 10, 100, 1000 }; int main() { cin >> n; int num = n * n; // ex. 3 * 3 while (num--) { int st, a, b, c, d; cin >> st >> a >> b >> c >> d; info[st].push_back(a); info[st].push_back(b); info[st].push_back(c); info[st].push_back..