No.2022 Antilogarithm
問題文最終更新日: 2022-07-28 03:24:01
English (AI translation)
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.
Show the original
yukicoder contest 354 (オムニバス)
(順位表)
の他の問題:
Problem Statement
Is $2\log_2{A}<\log_2{B^2}$ true?
Print Yes if it is true, and No if it is false.
Input
$A\ B$
The $1$st line contains $A$ and $B$, separated by a space.
Constraints
$1≤A≤2\times 10^{18}$
$-2\times 10^{18}≤B≤2\times 10^{18} , B\neq0$
All inputs are integers.
Output
Print the answer on $1$ line.
End the output with a newline.
Sample
Sample 1
Input
1 2
Output
Yes
Since $2\log_2{1}=0$ , $\log_2{2^2}=2$ , the answer is Yes.
Sample 2
Input
6 3
Output
No
Since $2\log_2{6}\simeq5.169925001442312$ , $\log_2{3^2}\simeq3.169925001442312$ , the answer is No.
Sample 3
Input
3 -2
Output
No
Since $2\log_2{3}\simeq3.169925001442312$ , $\log_2{(-2)^2}=2$ , the answer is No.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
harurun