#include<iostream>
using namespace std;
int main()
{
int n;
int x, y;
int arr[19][19] = {};
cin >> n;
for(int i = 0; i < n; i++)
{
cin >> x >> y;
arr[x - 1][y - 1] = 1;
}
for(int i = 0; i < 19; i++)
{
for(int j = 0; j < 19; j++)
{
cout << arr[i][j] << " ";
}
cout << endl;
}
return 0;
}
/*
5
1 1
2 2
3 3
4 4
5 5
*/
'Codeup 기초 > C++' 카테고리의 다른 글
Codeup 1098 - 설탕과자 뽑기. (0) | 2020.02.13 |
---|---|
Codeup 1097 - 바둑알 십자 뒤집기. (0) | 2020.02.13 |
Codeup 1095 - 이상한 출석 번호 부르기3. (0) | 2020.02.13 |
Codeup 1094 - 이상한 출석 번호 부르기2. (0) | 2020.02.13 |
Codeup 1093 - 이상한 출석 번호 부르기1. (0) | 2020.02.13 |