結果

問題 No.1585 Cubic Number
ユーザー 👑 H20H20
提出日時 2021-07-08 23:14:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 570 ms
コンパイル使用メモリ 87,200 KB
実行使用メモリ 71,836 KB
最終ジャッジ日時 2023-09-14 06:10:50
合計ジャッジ時間 3,867 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,752 KB
testcase_01 AC 76 ms
71,272 KB
testcase_02 AC 76 ms
71,836 KB
testcase_03 AC 76 ms
71,668 KB
testcase_04 AC 74 ms
71,724 KB
testcase_05 AC 75 ms
71,620 KB
testcase_06 AC 74 ms
71,216 KB
testcase_07 AC 74 ms
71,688 KB
testcase_08 AC 74 ms
71,780 KB
testcase_09 AC 76 ms
71,472 KB
testcase_10 AC 75 ms
71,740 KB
testcase_11 AC 76 ms
71,664 KB
testcase_12 AC 76 ms
71,820 KB
testcase_13 AC 76 ms
71,420 KB
testcase_14 AC 77 ms
71,684 KB
testcase_15 AC 76 ms
71,712 KB
testcase_16 AC 76 ms
71,300 KB
testcase_17 AC 76 ms
71,744 KB
testcase_18 AC 75 ms
71,620 KB
testcase_19 AC 76 ms
71,688 KB
testcase_20 AC 75 ms
71,628 KB
testcase_21 AC 75 ms
71,748 KB
testcase_22 AC 73 ms
71,212 KB
testcase_23 AC 73 ms
71,660 KB
testcase_24 AC 74 ms
71,468 KB
testcase_25 AC 73 ms
71,260 KB
testcase_26 AC 74 ms
71,528 KB
testcase_27 AC 75 ms
71,468 KB
testcase_28 AC 76 ms
71,736 KB
testcase_29 AC 75 ms
71,780 KB
testcase_30 AC 74 ms
71,764 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