#include<stdio.h>
#include<string.h>
int main(){
char filename[FILENAME_MAX];
char buffer[256];
FILE*fp;
strcpy(filename
,"/dev/stdin"); if((fp
= fopen(filename
,"r")) == NULL
){ printf("ファイル%sが見つかりません。\n",filename
); return(-1);
}
while(fgets(buffer
,256,fp
) != NULL
){ }
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RyaW5nLmg+CmludCBtYWluKCl7CiAgICAgICAgY2hhciBmaWxlbmFtZVtGSUxFTkFNRV9NQVhdOwogICAgICAgIGNoYXIgYnVmZmVyWzI1Nl07CiAgICAgICAgRklMRSpmcDsKIAogICAgICAgIHN0cmNweShmaWxlbmFtZSwiL2Rldi9zdGRpbiIpOwogICAgICAgIGlmKChmcCA9IGZvcGVuKGZpbGVuYW1lLCJyIikpID09IE5VTEwpewogICAgICAgICAgICAgICAgcHJpbnRmKCLjg5XjgqHjgqTjg6slc+OBjOimi+OBpOOBi+OCiuOBvuOBm+OCk+OAglxuIixmaWxlbmFtZSk7CiAgICAgICAgICAgICAgICByZXR1cm4oLTEpOwogICAgICAgIH0KIAogICAgICAgIHdoaWxlKGZnZXRzKGJ1ZmZlciwyNTYsZnApICE9IE5VTEwpewogICAgICAgICAgICAgICAgcHJpbnRmKCIlcyIsYnVmZmVyKTsKICAgICAgICB9CiAgICAgICAgZmNsb3NlKGZwKTsKICAgIAlyZXR1cm4gMDsKfQ==