結果

問題 No.1585 Cubic Number
ユーザー H20H20
提出日時 2021-07-08 23:14:06
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 86 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 1,042 ms
使用メモリ 76,212 KB
最終ジャッジ日時 2023-02-01 20:06:33
合計ジャッジ時間 4,306 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 83 ms
76,016 KB
testcase_01 AC 82 ms
75,668 KB
testcase_02 AC 83 ms
76,104 KB
testcase_03 AC 83 ms
76,212 KB
testcase_04 AC 83 ms
76,052 KB
testcase_05 AC 83 ms
75,988 KB
testcase_06 AC 83 ms
75,992 KB
testcase_07 AC 83 ms
76,048 KB
testcase_08 AC 82 ms
75,912 KB
testcase_09 AC 82 ms
76,092 KB
testcase_10 AC 83 ms
76,052 KB
testcase_11 AC 83 ms
76,044 KB
testcase_12 AC 84 ms
76,156 KB
testcase_13 AC 82 ms
75,972 KB
testcase_14 AC 83 ms
75,992 KB
testcase_15 AC 84 ms
76,056 KB
testcase_16 AC 84 ms
75,936 KB
testcase_17 AC 83 ms
76,040 KB
testcase_18 AC 83 ms
76,184 KB
testcase_19 AC 83 ms
75,884 KB
testcase_20 AC 84 ms
76,044 KB
testcase_21 AC 86 ms
76,100 KB
testcase_22 AC 82 ms
76,072 KB
testcase_23 AC 82 ms
76,048 KB
testcase_24 AC 86 ms
76,036 KB
testcase_25 AC 83 ms
76,100 KB
testcase_26 AC 82 ms
76,148 KB
testcase_27 AC 82 ms
76,072 KB
testcase_28 AC 83 ms
76,048 KB
testcase_29 AC 81 ms
75,884 KB
testcase_30 AC 83 ms
76,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans =False
for i in range(int(pow(N,1/3))-10,int(pow(N,1/3))+10):
    ans = (ans or N==i**3)
if ans:
    print('Yes')
else:
    print('No')
0