103660: [Atcoder]ABC366 A - Election 2
Description
Score : $100$ points
Problem Statement
A mayoral election is being held in AtCoder City. The candidates are Takahashi and Aoki.
There are $N$ valid votes cast for either of the two candidates, and the counting is currently underway. Here, $N$ is an odd number.
The current vote count is $T$ votes for Takahashi and $A$ votes for Aoki.
Determine if the outcome of the election is already decided at this point.
Constraints
- $1 \leq N \leq 99$
- $N$ is an odd number.
- $0 \leq T, A \leq N$
- $T + A \leq N$
- All input values are integers.
Input
The input is given from standard input in the following format:
$N$ $T$ $A$
Output
Print Yes
if the outcome of the election is already decided, and No
otherwise.
Sample Input 1
7 4 2
Sample Output 1
Yes
Even if the remaining one vote goes to Aoki, Takahashi will still win. That is, his victory is decided, so print Yes
.
Sample Input 2
99 12 48
Sample Output 2
No
Although Aoki currently has more votes, Takahashi would win if he receives the remaining $39$ votes. Therefore, print No
.
Sample Input 3
1 0 0
Sample Output 3
No
Output
问题陈述
在AtCoder市正在进行市长选举。候选人是高桥和青木。
有N张有效票投给了这两位候选人,目前计票正在进行中。这里,N是一个奇数。
目前的票数是高桥T票,青木A票。
判断选举结果是否已经确定。
约束条件
- $1 \leq N \leq 99$
- $N$是一个奇数。
- $0 \leq T, A \leq N$
- $T + A \leq N$
- 所有输入值都是整数。
输入
输入从标准输入以下格式给出:
$N$ $T$ $A$
输出
如果选举结果已经确定,打印Yes
,否则打印No
。
样本输入1
7 4 2
样本输出1
Yes
即使剩下的那一票投给了青木,高桥仍然会赢。也就是说,他的胜利已经确定,所以打印Yes
。
样本输入2
99 12 48
样本输出2
No
尽管青木目前票数领先,但如果高桥获得剩下的39票,他将赢得选举。因此,打印No
。
样本输入3
1 0 0
样本输出3
No