chaorijun @ 2023-09-06 17:47:22
#include<stdio.h>
int main()
{
int N,M,i,pr= 0,t=2;
scanf("%d",&N);
while(scanf("%d",&pr)!= EOF)
{ M = 0;
if (t%2 == 0)
{
for (i = 0;i<pr;i++)
{
printf("0");
M++;
if(M == N)
{
printf("\n");
M = 0;
}
}
t++;
}
else
{
for (i = 0;i<pr;i++)
{
printf("1");
M++;
if(M == N)
{
printf("\n");
M = 0;
}
}
t++;
}
}
return 0;
}