```c
#include <stdio.h>
#include <string.h>
#include <math.h>
int main(){
int i,n,g=0;
int f=1;
int m;
scanf("%d",&n);
while(scanf("%d",&m)!=EOF){
for(i=1;i<=m;i++){
if(f>0){
printf("0");
g++;
}else{
printf("1");
g++;
}
if(g%n==0){
printf("\n");
}
}
f=-f;
}
return 0;
}
大佬们,为啥eof可以这样用.运行没问题,但是debug不行.