# 画图游戏

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)

Total Submission(s): 613    Accepted Submission(s): 190

Problem Description

forever97和pikapikachu在玩一种画图游戏，两人相互往一个n*m大的矩形里画半径为r的圆，任意两圆不能相交，圆与矩形也不能相交，不能再画的人输。现在forever97先画，假设两人都足够聪明，均采取最佳策略，问最后谁会赢？

Input

Output

Sample Input

```2
2 2 1
1 1 1```

Sample Output

```forever97.
pikapikachu>.<先手能画一个圆，就必赢#include <iostream>
#include <string.h>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <stdlib.h>

using namespace std;
typedef long long int LL;
int n,m,r;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
scanf("%d%d%d",&n,&m,&r);
if(n>=2*r&&m>=2*r)
printf("forever97.\n");
else
printf("pikapikachu>.<\n");

}
return 0;
}```

475 篇文章43 人订阅

0 条评论

## 相关文章

27110

### 3384/1750: [Usaco2004 Nov]Apple Catching 接苹果

3384/1750: [Usaco2004 Nov]Apple Catching 接苹果 Time Limit: 1 Sec  Memory Limit: 1...

27011

842

2928

19910

### HDUOJ---2110

Crisis of HDU Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/3276...

2547

### BZOJ 1008 越狱

1008: [HNOI2008]越狱 Time Limit: 1 Sec  Memory Limit: 162 MB Submit: 8681  Solved:...

3517

1073

2947

### POJ 2942Knights of the Round Table(tarjan求点双+二分图染色)

Description Being a knight is a very attractive career: searching for the Holy G...

3807