henry09 @ 2019-05-07 20:50:16
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,a,top=0;
bool flag=0;
cin>>n;
do
{
cin>>a;
for (int i=0;i<a;i++)
{
if (top>=n)
{
cout<<endl;
top=0;
}
cout<<flag;
top++;
}
flag=!flag;
} while (cin.get()!='\n');
return 0;
}
by aminoas @ 2019-05-07 20:56:15
头像警告