TeaQiLang @ 2024-09-02 16:30:49
#include<iostream>
using namespace std;
int a[209];
int main(){
int n;
cin>>n;
int sum=n*n;
int cnt=0;
while(sum>0){
cin>>a[cnt];
cnt++;
sum-=a[cnt-1];
}
int flag=1,t=1;
for(int i=0;i<=cnt;i++){
flag=!flag;
for(int j=0;j<a[i];j++){
cout<<flag;
if(t%n==0) cout<<endl;
t++;
}
}
by Grammar__hbw @ 2024-09-02 16:31:34
@TeaQiLang 大括号
by TeaQiLang @ 2024-09-02 16:32:56
@Grammar__hbw 哦哦哦
by TeaQiLang @ 2024-09-02 16:34:18
@Grammar__hbw 谢谢