• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
hpu_mxj
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2014年2月20日

取石子
摘要: 1 /*描述 2 Yougth和Hrdv玩一个游戏,拿出n个石子摆成一圈,Yougth和Hrdv分别从其中取石子,谁先取完者胜,每次可以从中取一个或者相邻两个,Hrdv先取,输出胜利着的名字。 3 4 输入 5 输入包括多组测试数据。 6 每组测试数据一个n,数据保证int范围内。 7 输出 8 输出胜利者的名字。 9 样例输入10 211 312 样例输出13 Hrdv14 Yougth*/15 #include16 int main()17 {18 int n,i;19 while(scanf("%d",&n)!=EOF)20 {21 if(n<3)22. 阅读全文
posted @ 2014-02-20 17:48 无忧无虑的蜗牛 阅读(175) 评论(0) 推荐(0)
 
Coin Test
摘要: 1 /*描述 2 As is known to all,if you throw a coin up and let it droped on the desk there are usually three results. 3 Yes,just believe what I say ~it can be the right side or the other side or standing on the desk, 4 If you don't believe this,just try In the past there were some famous mathematici 阅读全文
posted @ 2014-02-20 17:11 无忧无虑的蜗牛 阅读(293) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3