問題一覧 > 通常問題

No.2736 About half

レベル : / AI推定難易度 : 77 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 240
作問者 : cho435 / テスター : kenken714 ponjuice Nzt3 tassei903
お気に入りにしたユーザー ProblemId : 10842 / 自分の提出
問題文最終更新日: 2024-04-19 01:07:10
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
CPCTF 2024 : PPC (順位表) の他の問題:

Problem Statement

There are $A + B$ candies in total, and they were distributed so that Alice received $A$ candies and Bob received $B$ candies.
Alice and Bob each complain about the distribution if the number of candies the other person has is greater than $2$ times the number of candies they themselves have.
Determine whether neither Alice nor Bob complains about this distribution.

Constraints

  • All inputs are integers.
  • $1 \leq A, B \leq 500$

Input

The input is given from standard input in the following format.

$A \  B$

Output

Print Yes if neither Alice nor Bob complains, and No if at least one of Alice and Bob complains.

Sample

Sample 1
Input
6 6
Output
Yes

Neither of them complains.

Sample 2
Input
4 9
Output
No

Alice complains.

Sample 3
Input
500 250
Output
Yes

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。