Lichen081103 @ 2022-08-31 21:11:42
#include<bits/stdc++.h>
using namespace std;
int main(){
int N=0,is=0,count=0;
cin>>N;
int i=0;
while(is<N*N){
i++;
int temp;
cin>>temp;
if(i%2==1){
for(int j=1;j<=temp;j++){
if(count%7==0 && count!=0){
cout<<endl<<0;
count++;
}else{
cout<<0;
count++;
}
}
}else if(i%2==0){
for(int j=1;j<=temp;j++){
if(count%7==0 && count!=0){
cout<<endl<<1;
count++;
}else{
cout<<1;
count++;
}
}
}
is+=temp;
}