chenyanming @ 2018-10-24 16:09:30
#include<iostream>
using namespace std;
/* Input */ int InpN,InpC;
/* Loop */ int LoopI,LoopJ,LoopK=0;
/* Loop */bool LoopL=1;
int main()
{
cin>>InpN;
for(LoopI=1;LoopK<=InpN*InpN;LoopI++)
{
cin>>InpC;
LoopL=!LoopL;
for(LoopJ=1;LoopJ<=InpC;LoopJ++)
{
LoopK=(LoopK+1);
if(LoopL)cout<<1;
else cout<<0;
if(LoopK%InpN==0&&LoopK!=InpN*InpN)cout<<"\n";
}
}
return 0;
}
by x义x @ 2018-10-24 16:11:28
@chenyanming
第一次见到把循环变量定义成LoopI,LoopJ
的dalao