A8641 | Plate Game
时间限制1s
内存限制256MB
通过 / 提交0/0
题目描述
You've got a rectangular table with length $a$ and width $b$ and the infinite number of plates of radius $r$ . Two players play the following game: they take turns to put the plates on the table so that the plates don't lie on each other (but they can touch each other), and so that any point on any plate is located within the table's border. During the game one cannot move the plates that already lie on the table. The player who cannot make another move loses. Determine which player wins, the one who moves first or the one who moves second, provided that both players play optimally well.
输入格式
A single line contains three space-separated integers $a$ , $b$ , $r$ $(1<=a,b,r<=100)$ — the table sides and the plates' radius, correspondingly.
输出格式
If wins the player who moves first, print "First" (without the quotes). Otherwise print "Second" (without the quotes).
输入输出样例
输入 #1
5 5 2
输出 #1
First
输入 #2
6 7 4
输出 #2
Second
In the first sample the table has place for only one plate. The first player puts a plate on the table, the second player can't do that and loses.
In the second sample the table is so small that it doesn't have enough place even for one plate. So the first player loses without making a single move.

In the second sample the table is so small that it doesn't have enough place even for one plate. So the first player loses without making a single move.

C++ 编辑器
输入
输出
可保存默认模板;新题优先使用已保存模板。
当前快捷键仅展示,暂不支持修改。
- 撤销
Ctrl / ⌘ + Z - 重做
Ctrl / ⌘ + Y - 查找
Ctrl / ⌘ + F - 全选
Ctrl / ⌘ + A - 复制
Ctrl / ⌘ + C - 剪切
Ctrl / ⌘ + X - 粘贴
Ctrl / ⌘ + V - 自动排版
工具栏排版按钮 - 草稿保存
编辑时自动保存到本机
历史
提交记录
状态说明时间源码
AI
作答助手
你好,我是作答助手。可以问思路、复杂度、样例含义或代码报错原因;不会直接给出完整 AC 代码。
确定要清空代码吗?
提交通过
评测结果:Accepted