guogy2010 @ 2022-09-07 21:09:21
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,s,t,f=0;
cin>>n;
for(s=0;s<=n*n; )
{
cin>>t;
for(int i=1;i<=t;i++)
{
if(f==0) cout<<'0';
else
cout<<'1';
if((s+i)%n==0&&s+i!=n*n) cout<<endl;
}
if(f==1) f=0;
else
f=1;
s+=t;
}
return 0;
}