結果

問題 No.1585 Cubic Number
ユーザー ninja-kidninja-kid
提出日時 2022-09-15 15:34:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 1,000 ms
コード長 144 bytes
コンパイル時間 690 ms
コンパイル使用メモリ 87,348 KB
実行使用メモリ 76,088 KB
最終ジャッジ日時 2023-08-22 11:13:55
合計ジャッジ時間 4,474 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
75,972 KB
testcase_01 AC 74 ms
71,220 KB
testcase_02 AC 75 ms
71,440 KB
testcase_03 AC 77 ms
71,236 KB
testcase_04 AC 73 ms
71,332 KB
testcase_05 AC 74 ms
71,076 KB
testcase_06 AC 74 ms
71,144 KB
testcase_07 AC 76 ms
71,348 KB
testcase_08 AC 74 ms
71,140 KB
testcase_09 AC 74 ms
71,260 KB
testcase_10 AC 75 ms
71,360 KB
testcase_11 AC 76 ms
71,344 KB
testcase_12 AC 83 ms
76,036 KB
testcase_13 AC 80 ms
76,000 KB
testcase_14 AC 80 ms
76,088 KB
testcase_15 AC 73 ms
71,400 KB
testcase_16 AC 72 ms
71,288 KB
testcase_17 AC 73 ms
71,628 KB
testcase_18 AC 80 ms
75,976 KB
testcase_19 AC 81 ms
75,712 KB
testcase_20 AC 79 ms
75,960 KB
testcase_21 AC 79 ms
75,976 KB
testcase_22 AC 80 ms
75,924 KB
testcase_23 AC 80 ms
75,936 KB
testcase_24 AC 81 ms
75,868 KB
testcase_25 AC 80 ms
76,032 KB
testcase_26 AC 80 ms
75,968 KB
testcase_27 AC 80 ms
75,964 KB
testcase_28 AC 73 ms
71,612 KB
testcase_29 AC 74 ms
71,596 KB
testcase_30 AC 82 ms
75,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
for i in range(1, N + 1):
    if i ** 3 > N: break
    if i ** 3 == N:
        print("Yes")
        exit()
print("No")
        
0