neverwave @ 2018-08-03 13:39:12
// luogu-judger-enable-o2
#include<iostream>
using namespace std;
int a[10000];
int n,k,i=0,j=1;
int main() {
cin>>n;
int s=n;
for( k=1;; k++) {
cin>>a[k];
s+=a[k];
if(s==n*n)
break;
}
k=1;
while(a[k]) {
i++;
if(i==n+1) {
i=1;
cout<<endl;
j++;
}
if(k%2==1)
cout<<"0";
else
cout<<"1";
a[k]--;
if(a[k]==0)
k++;
}
return 0;
}
by neverwave @ 2018-08-04 21:09:00
@neverwave 知道了
by 据设错了 @ 2018-08-08 20:29:26
你好像没有输入k