//入力チェック #include #include #include char s[1010]; int main(){ for(int i=0;i<5;i++){ assert(fgets(s,1000,stdin)); int a,b,c,d,e; assert(sscanf(s,"%d %d %d %d %d",&a,&b,&c,&d,&e)==5); assert(1<=a&&a<=1000000000); assert(1<=b&&b<=1000000000); assert(1<=c&&c<=1000000000); assert(1<=d&&d<=1000000000); assert(1<=e&&e<=1000000000); } assert(scanf("%s",s)==-1); }