結果

問題 No.1585 Cubic Number
ユーザー vjudge1vjudge1
提出日時 2024-07-01 03:56:13
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 1,000 ms
コード長 123 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-01 03:56:15
合計ジャッジ時間 2,298 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a = int(input())

b = math.floor(a**(1/3))

if b**3 == a or (b+1)**3==a:
    print("Yes")
else:
    print("No")
0