結果

問題 No.1585 Cubic Number
ユーザー 89
提出日時 2022-02-12 02:04:52
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,172 KB
実行使用メモリ 54,004 KB
最終ジャッジ日時 2024-06-28 01:25:53
合計ジャッジ時間 2,453 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

eps = 0.0000001
n = int(input())
M = n**(1/3)
import math
#print(M)
MMM = math.ceil(M)
MMMM = math.floor(M)
if abs(MMMM - M) < eps:
    print("Yes")
    exit()
if abs(MMM - M) < eps:
    print("Yes")
    exit()
print("No")
0