Description
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.
Input
A single line contains three space-separated integers a, b, r(1 ≤ a, b, r ≤ 100) — the table sides and the plates' radius, correspondingly.
Output
If wins the player who moves first, print "First" (without the quotes). Otherwise print "Second" (without the quotes).
Sample Input
5 5 2
First
6 7 4
Second
Hint
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.
题目大意:输入一个长方形的两边再输入一个圆的半径,两个人接替向长方形内填圆,圆不能重合,直到不能填充为止,输出填充成功的人。
源代码:
#include<cstdio>
int main()
{
int a,b,r;
while(~scanf("%d%d%d",&a,&b,&r))
{
if ((2*r>a)||(2*r>b))
{
printf("Second\n");
}
else
printf("First\n");
}
return 0;
}