No.1585 Cubic Number
レベル :
/ AI推定難易度 : 171
/ 実行時間制限 : 1ケース 1.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 328
作問者 :
e869120
/ テスター :
PCTprobability
タグ : / 解いたユーザー数 328
作問者 :
e869120
/ テスター :
PCTprobability
問題文最終更新日: 2021-07-08 21:58:50
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.
Back to the original
yukicoder contest 303
(順位表)
の他の問題:
Problem Statement
Is the integer $N$ a cubic number?
Input
$N$
Output
Print Yes if $N$ is a cubic number, and No otherwise.
Constraints
- $1 \leq N \leq 10^{18}$
- $N$ is an integer
Sample
Sample 1
Input
1331
Output
Yes
Since $1331 = 11^{3}$, it is a cubic number.
Sample 2
Input
288
Output
No
$288$ is not a cubic number.
Sample 3
Input
1000000000000000000
Output
Yes
Note that the input may not fit in a $32$-bit integer.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。