結果

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

ソースコード

diff #

import decimal
import math
eps = 0.000000001
import decimal
n = int(input())
M = decimal.Decimal(pow(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