#include<bits/stdc++.h> using namespace std; int sum,n,x,b; int main(){ cin>>n; while(cin>>x){ while(x--){ cout<<b; sum++; if(sum==n){ cout<<endl; sum=0; } } b=(b+1)%2; } }
17行解决