結果

問題 No.1585 Cubic Number
ユーザー miya145592miya145592
提出日時 2023-05-07 01:42:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 1,000 ms
コード長 157 bytes
コンパイル時間 662 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 71,936 KB
最終ジャッジ日時 2023-08-15 20:30:03
合計ジャッジ時間 4,452 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,676 KB
testcase_01 AC 73 ms
71,520 KB
testcase_02 AC 74 ms
71,700 KB
testcase_03 AC 75 ms
71,876 KB
testcase_04 AC 75 ms
71,636 KB
testcase_05 AC 76 ms
71,856 KB
testcase_06 AC 74 ms
71,836 KB
testcase_07 AC 75 ms
71,884 KB
testcase_08 AC 74 ms
71,820 KB
testcase_09 AC 77 ms
71,456 KB
testcase_10 AC 74 ms
71,728 KB
testcase_11 AC 76 ms
71,576 KB
testcase_12 AC 73 ms
71,664 KB
testcase_13 AC 75 ms
71,832 KB
testcase_14 AC 76 ms
71,868 KB
testcase_15 AC 76 ms
71,744 KB
testcase_16 AC 76 ms
71,472 KB
testcase_17 AC 76 ms
71,580 KB
testcase_18 AC 78 ms
71,524 KB
testcase_19 AC 79 ms
71,876 KB
testcase_20 AC 76 ms
71,760 KB
testcase_21 AC 75 ms
71,928 KB
testcase_22 AC 76 ms
71,936 KB
testcase_23 AC 75 ms
71,712 KB
testcase_24 AC 75 ms
71,448 KB
testcase_25 AC 74 ms
71,788 KB
testcase_26 AC 76 ms
71,524 KB
testcase_27 AC 77 ms
71,816 KB
testcase_28 AC 75 ms
71,524 KB
testcase_29 AC 74 ms
71,812 KB
testcase_30 AC 76 ms
71,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
x = int(math.pow(N, 1/3))
for i in range(10):
    if (x+i)**3==N or (x-i)**3==N:
        print("Yes")
        exit()
print("No")
0