#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
*/
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 라이프코리아트위터 공유하기
  • shared
  • 카카오스토리 공유하기