hdu acm1564
hdu acm1564Problem DescriptionNew Year is Coming!ailyanlu is very happy today!and he is playing a chessboard game with 8600.The size of the chessboard is n*n.A stone is placed in a corner square.They play alternatively with 8600 having the first move.Each time,player is allowed to move the stone to an unvisited neighbor square horizontally or vertically.The one who can't make a move will lose the game.If both play perfectly,who will win the game?InputThe input is a sequence of positive integers each in a separate line.The integers are between 1 and 10000,inclusive,(means 1
最佳回答
画图便可得到规律: 偶数时:8600胜 奇数时:ailyanlu胜代码:#includeint main(){ int n; while(scanf("%d",&n),n) { if(0==n%2) puts("8600"); else puts("ailyanlu"); } return 0;}
最新回答共有2条回答
-
2026-04-07 22:31:25柔弱的路灯
回复画图便可得到规律: 偶数时:8600胜 奇数时:ailyanlu胜代码:#includeint main(){ int n; while(scanf("%d",&n),n) { if(0==n%2) puts("8600"); else puts("ailyanlu"); } return 0;}
热门文章
- 康达学院专转本五年制
- 高考一个考场分ab卷吗
- not only but also用法
- 某物体做自由落体运动,从释放开始计时,则物体在前2s内的平均速度为______m/s,物体下落2m时的速度大小为______m/s.
- 三角函数公式大全表格
- 地理中考必背知识点2022
- 2013-2014学年小学六年级科学上学期期末考试试卷及答案
- 人教版2014-2015学年小学五年级英语第二学期期中教学质量检测试卷及答案
- 【Linux驱动开发】设备树详解(二)设备树语法详解
- 别跟客户扯细节
- 在别的城市买房子能落户吗
- 卖房前要把装修贷还完吗
- 高中政治教学提高教学效果的方法探究
- “互联网+”背景下的初中英语课堂教学改革与创新策略研究
- 2022年终止合同范本
- 租房合同范本范文
- 如何挑选土豆
- 如何挑选土鸡
