結果

問題 No.1585 Cubic Number
ユーザー lloyzlloyz
提出日時 2021-12-23 22:29:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 412 ms / 1,000 ms
コード長 163 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 11,884 KB
実行使用メモリ 10,060 KB
最終ジャッジ日時 2023-10-18 21:59:28
合計ジャッジ時間 7,021 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 409 ms
10,060 KB
testcase_01 AC 30 ms
10,060 KB
testcase_02 AC 29 ms
10,060 KB
testcase_03 AC 30 ms
10,060 KB
testcase_04 AC 30 ms
10,060 KB
testcase_05 AC 30 ms
10,060 KB
testcase_06 AC 30 ms
10,060 KB
testcase_07 AC 29 ms
10,060 KB
testcase_08 AC 30 ms
10,060 KB
testcase_09 AC 29 ms
10,060 KB
testcase_10 AC 29 ms
10,060 KB
testcase_11 AC 29 ms
10,060 KB
testcase_12 AC 286 ms
10,060 KB
testcase_13 AC 165 ms
10,060 KB
testcase_14 AC 241 ms
10,060 KB
testcase_15 AC 29 ms
10,060 KB
testcase_16 AC 29 ms
10,060 KB
testcase_17 AC 30 ms
10,060 KB
testcase_18 AC 331 ms
10,060 KB
testcase_19 AC 394 ms
10,060 KB
testcase_20 AC 115 ms
10,060 KB
testcase_21 AC 301 ms
10,060 KB
testcase_22 AC 236 ms
10,060 KB
testcase_23 AC 329 ms
10,060 KB
testcase_24 AC 404 ms
10,060 KB
testcase_25 AC 336 ms
10,060 KB
testcase_26 AC 358 ms
10,060 KB
testcase_27 AC 294 ms
10,060 KB
testcase_28 AC 29 ms
10,060 KB
testcase_29 AC 30 ms
10,060 KB
testcase_30 AC 412 ms
10,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(1, 10**6 + 1):
    if i**3 == n:
        print("Yes")
        break
    elif i**3 > n:
        print("No")
        break
0