Paris_Commune @ 2021-12-25 21:47:01
#include <iostream>
#include <cstdio>
//#include <万能头>
using namespace std;int s,cnt,x;
int main(){
int n;
int a;
cin>>n;
while(cnt<n*n){
cin>>a;
s++;
for(int i=a;i>0;i-=1){
if(x==n){
cout<<"\n";
x-=x;
x*=0;
}
if(s%2==1)cout<<"0";
else cout<<"1";
x++;
cnt++;
}
}
return 0;
}