結果

問題 No.1585 Cubic Number
ユーザー irumo8202
提出日時 2022-02-07 10:05:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 311 ms / 1,000 ms
コード長 124 bytes
コンパイル時間 157 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-12 00:23:05
合計ジャッジ時間 5,376 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

assert 1 <= N <= 10 ** 18

x = 1
while pow(x, 3) < N:
    x += 1

print("Yes" if pow(x, 3) == N else "No")
0