当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1564:Play a game

题目描述
New 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?
输入解释
The input is a sequence of positive integers each in a separate line.
The integers are between 1 and 10000, inclusive,(means 1 <= n <= 10000) indicating the size of the chessboard. The end of the input is indicated by a zero.
输出解释
Output the winner ("8600" or "ailyanlu") for each input line except the last zero.
No other characters should be inserted in the output.
输入样例
2
0
输出样例
8600
来自杭电HDUOJ的附加信息
Author ailyanlu
Recommend 8600

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 Happy 2007

源链接: HDU-1564

最后修改于 2020-10-25T22:46:03+00:00 由爬虫自动更新

共提交 457

通过率 66.08%
时间上限 内存上限
1000/1000MS(Java/Others) 32768/32768K(Java/Others)