qyh17306989667 @ 2025-01-06 20:29:17
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,m=0,x=0,a=0,i=0;
cin>>n;
while(scanf("%d",&m) != EOF){
for(int j=1;j<=m;j++){
x++;
if(i%2==0){
cout<<"0";
}if(i%2==1){
cout<<"1";
}
if(x>0&&x%7==0){
cout<<endl;
}
}
i++;
a+=m;
}
return 0;
}
by iranai @ 2025-01-06 20:36:13
@qyh17306989667输出换行的地方余的是n
by qyh17306989667 @ 2025-01-07 21:01:33
@iranai谢了