shuibowenzuishuai @ 2024-04-19 16:54:31
#include<bits/stdc++.h>
using namespace std;
int main(){
int w,a[9999999],q=0,s;
cin>>w;
while(cin>>a[q])q++;
s=1;q=0;
for(int i=1;i<=w*w;){
(s==1)?s=1:s=0;
for(int y=1;y<=a[q];y++,i++){
if(i%7==0)cout<<endl;
cout<<s;
}q++;
}
return 0;
}
by wjr_jok @ 2024-04-19 17:03:17
@shuibowenzuishuai 很明显超过1e5的数组要开main外面
by wjr_jok @ 2024-04-19 17:04:13
@shuibowenzuishuai 然后不一定每一行只有7个数