Euclid's Game
来源:互联网 发布:矩阵求行列式的公式 编辑:程序博客网 时间:2024/05/11 09:09
Starts with two unequal positive numbers (M,N andM>N) on the board. Two players move in turn. On eachmove, a player has to write on the board a positive number equal tothe difference of two numbers already on the board; this numbermust be new, i.e., different from all the numbers already on theboard. The player who cannot move loses the game. Should you chooseto move first or second in this game?
According to the above rules, there are two players play tihs game.Assumptions A write a number on the board at first, then B writeit.
Your task is write a program to judge the winner is A or B.
Sample Input
3 1
Sample Output
A
#include<iostream>
using namespace std;
int f(int m, int n)
{
}
int main()
{
}
- Euclid's Game
- 【poj2348】Euclid's Game
- poj2348 - Euclid's Game
- HDU1525 Euclid's Game
- POJ2348:Euclid's Game
- hdu1525 Euclid's Game
- Euclid's Game
- Euclid's Game(0099)
- OpenJudge1350 Euclid's Game
- Euclid's Game---博弈
- poj2348 Euclid's Game
- TZC 2414 Euclid's Game
- poj 2348 Euclid's Game
- zoj 1913 Euclid's Game
- hdu 1525 Euclid's Game
- hdu 1525 Euclid's Game
- HDU 1525 - Euclid's Game
- POJ-2348-Euclid's Game
- 沙漠储油点问题
- c/c++ 数字转成字符串, 字符…
- 统计出现最多的字母!
- 偶数字记数
- C++ 排序函数 sort(),qsort()的用…
- Euclid's Game
- 图算法之bfs/dfs
- 宴会
- 贪心法删数问题
- Sorting Again
- 拉丁方阵
- 沙漠储油点
- 逃跑的蠕虫
- 哥德巴赫猜想