0
已解决
马苏畅
中级守护
中级守护
题目链接: 酷町堂:6492
#include<iostream>
#include<cstdio>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
int n[500];
int main(){
int a,b,c;
cin>>a;
for(int i=1;i<=2*a;i++){
cin>>n[i];
}
int cnt=0;
bool f=0;
for(int i=1;i<=2*a;i++){
for(int j=1;j<=n[i];j++){
cnt++;
cout<<f;
if(cnt%7==0){
cout<<endl;
}
}
f=!f;
}
return 0;
}
0分???
大佬救我!!!