#include <stdio.h>
int main()
{
int T,t=0,tt=0;
int tz=0,wg=0;
int rest=0;//休息
scanf("%d",&T);
while(T!=t)
{
wg=wg+3;
if(!rest)//没有休息
{
tz=tz+9;
tt++;
}
t++;
if(tt%10==0&&rest==0)
{
if(tz>wg)
{
rest=1;
tt+=30;
}
}
if(t==tt)
{
rest=0;
}
}
if(tz>wg)
{
printf("^_^ %d\n",tz);
}
else if(wg>tz)
{
printf("@_@ %d\n",wg);
}
else
{
printf("-_- %d",tz);
}
return 0;
}
7-39 龟兔赛跑 (20分)
猜你喜欢
转载自blog.csdn.net/qq_38054511/article/details/104050974
今日推荐
周排行