只过了#7#8两个点,不应该啊
#include<bits/stdc++.h>
using namespace std;
int main(void)
{
long n,x,sum=0,count=0;
bool zero=true,first=false,op=0;
cin>>n;
while(sum<n*n)
{
cin>>x;
sum+=x;
if(zero==true)
{
for(int j=0;j<x;j++)
{
if((count%n==0)&&(first==true)) cout<<endl;
if(first==false) first=true;
cout<<op;
count++;
}
op=!op;
zero=false;
}
else
{
for(int j=0;j<x;j++)
{
if(count%n==0) cout<<endl;
cout<<op;
count++;
}
op=!op;
zero=true;
}
}
return 0;
}