标签:style http color os io ar 数据 div 代码
Yougth和Hrdv玩一个游戏,拿出n个石子摆成一圈,Yougth和Hrdv分别从其中取石子,谁先取完者胜,每次可以从中取一个或者相邻两个,Hrdv先取,输出胜利着的名字。
2 3
Hrdv Yougth
代码:
#include<stdio.h>
int main()
{
int n;
while(~scanf("%d",&n))
{
if(n<3)
printf("Hrdv\n");
else
printf("Yougth\n");
}
return 0;
}标签:style http color os io ar 数据 div 代码
原文地址:http://blog.csdn.net/qq_18062811/article/details/39054607