[ZJ]b761: 搶30
題目:
http://zerojudge.tw/ShowProblem?problemid=b761
-----------------------------------------------------------------------------------------------------------------
#include<cstdio>
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
printf("%s\n",(n%4!=0)?"fat":"egg");
return 0;
}
http://zerojudge.tw/ShowProblem?problemid=b761
-----------------------------------------------------------------------------------------------------------------
#include<cstdio>
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
printf("%s\n",(n%4!=0)?"fat":"egg");
return 0;
}
留言
張貼留言