結果

問題 No.1585 Cubic Number
ユーザー Theta
提出日時 2022-10-17 18:10:01
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 202 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-28 08:22:57
合計ジャッジ時間 2,223 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import pow, floor


def main():
    N = int(input())
    if abs(round(pow(N, 1/3)) ** 3 - N) < 1e-7:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
0