結果

問題 No.1585 Cubic Number
ユーザー tobusakana
提出日時 2022-12-03 16:58:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 1,000 ms
コード長 159 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 52,480 KB
最終ジャッジ日時 2024-10-10 19:25:46
合計ジャッジ時間 2,896 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

P = int(N ** (1 / 3))

for p in range(max(1, P - 100), P + 100):
    if p ** 3 == N:
        print("Yes")
        break
else:
    print("No")
0