BBY123 @ 2022-11-12 18:31:39
#include<bits/stdc++.h>
using namespace std;
int n,a[1000][1000],m[1000],cnt,x;
int main(){
cin>>n;
for(int i = 0;i < n*2;i++){
cin>>m[i];
}
for(int i = 0;i < n*2;i++){
for(int j = 0;j < m[i];j++){
if(cnt%2==0){
if(x>n-1){
cout<<endl;
x=0;
}
cout<<"0";
x++;
}
else{
if(x>n-1){
cout<<endl;
x=0;
}
cout<<"1";
x++;
}
}
cnt++;
}
return 0;
}
by HYD2010 @ 2022-12-08 17:33:47
小菜坤