結果

問題 No.1585 Cubic Number
ユーザー 8989
提出日時 2022-02-12 02:07:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 89,460 KB
最終ジャッジ日時 2023-09-10 10:01:54
合計ジャッジ時間 9,354 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 216 ms
88,992 KB
testcase_02 AC 219 ms
89,184 KB
testcase_03 AC 217 ms
89,176 KB
testcase_04 AC 219 ms
89,280 KB
testcase_05 AC 216 ms
89,152 KB
testcase_06 AC 218 ms
89,004 KB
testcase_07 AC 218 ms
89,216 KB
testcase_08 AC 217 ms
89,136 KB
testcase_09 AC 218 ms
89,060 KB
testcase_10 AC 225 ms
89,328 KB
testcase_11 AC 222 ms
88,952 KB
testcase_12 AC 219 ms
89,412 KB
testcase_13 AC 220 ms
89,324 KB
testcase_14 AC 217 ms
89,440 KB
testcase_15 AC 218 ms
89,156 KB
testcase_16 AC 224 ms
89,236 KB
testcase_17 AC 219 ms
89,164 KB
testcase_18 AC 220 ms
89,048 KB
testcase_19 AC 220 ms
89,324 KB
testcase_20 AC 220 ms
89,064 KB
testcase_21 AC 219 ms
88,956 KB
testcase_22 AC 222 ms
89,144 KB
testcase_23 AC 218 ms
89,212 KB
testcase_24 AC 221 ms
89,168 KB
testcase_25 AC 223 ms
89,016 KB
testcase_26 AC 220 ms
89,312 KB
testcase_27 AC 220 ms
89,460 KB
testcase_28 AC 221 ms
89,432 KB
testcase_29 AC 221 ms
89,032 KB
testcase_30 AC 228 ms
89,192 KB
権限があれば一括ダウンロードができます

ソースコード

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