結果

問題 No.1585 Cubic Number
ユーザー 👑 rin204rin204
提出日時 2021-08-05 13:18:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 1,000 ms
コード長 141 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,860 KB
最終ジャッジ日時 2023-10-14 21:35:21
合計ジャッジ時間 3,757 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,724 KB
testcase_01 AC 68 ms
71,096 KB
testcase_02 AC 68 ms
71,716 KB
testcase_03 AC 72 ms
71,344 KB
testcase_04 AC 69 ms
71,336 KB
testcase_05 AC 70 ms
71,648 KB
testcase_06 AC 70 ms
71,292 KB
testcase_07 AC 69 ms
71,656 KB
testcase_08 AC 70 ms
71,572 KB
testcase_09 AC 70 ms
71,504 KB
testcase_10 AC 71 ms
71,668 KB
testcase_11 AC 70 ms
71,860 KB
testcase_12 AC 70 ms
71,564 KB
testcase_13 AC 69 ms
71,460 KB
testcase_14 AC 68 ms
71,340 KB
testcase_15 AC 70 ms
71,496 KB
testcase_16 AC 70 ms
71,652 KB
testcase_17 AC 68 ms
71,784 KB
testcase_18 AC 67 ms
71,496 KB
testcase_19 AC 69 ms
71,572 KB
testcase_20 AC 67 ms
71,476 KB
testcase_21 AC 68 ms
71,348 KB
testcase_22 AC 69 ms
71,496 KB
testcase_23 AC 68 ms
71,340 KB
testcase_24 AC 68 ms
71,748 KB
testcase_25 AC 69 ms
71,648 KB
testcase_26 AC 67 ms
71,548 KB
testcase_27 AC 68 ms
71,560 KB
testcase_28 AC 72 ms
71,496 KB
testcase_29 AC 69 ms
71,356 KB
testcase_30 AC 68 ms
71,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = int(n ** (1 / 3))
for i in range(x - 2, x + 3):
    if i ** 3 == n:
        print("Yes")
        exit()
print("No")
    
0