結果

問題 No.1585 Cubic Number
ユーザー shakayamishakayami
提出日時 2021-07-08 22:20:59
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 78 ms / 1,000 ms
コード長 187 bytes
コンパイル時間 272 ms
使用メモリ 75,900 KB
最終ジャッジ日時 2023-02-01 19:51:20
合計ジャッジ時間 4,072 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 74 ms
75,552 KB
testcase_01 AC 73 ms
75,608 KB
testcase_02 AC 74 ms
75,664 KB
testcase_03 AC 75 ms
75,832 KB
testcase_04 AC 74 ms
75,420 KB
testcase_05 AC 75 ms
75,784 KB
testcase_06 AC 75 ms
75,628 KB
testcase_07 AC 74 ms
75,552 KB
testcase_08 AC 75 ms
75,772 KB
testcase_09 AC 74 ms
75,740 KB
testcase_10 AC 74 ms
75,532 KB
testcase_11 AC 74 ms
75,840 KB
testcase_12 AC 75 ms
75,700 KB
testcase_13 AC 74 ms
75,884 KB
testcase_14 AC 74 ms
75,780 KB
testcase_15 AC 74 ms
75,708 KB
testcase_16 AC 75 ms
75,796 KB
testcase_17 AC 73 ms
75,708 KB
testcase_18 AC 74 ms
75,716 KB
testcase_19 AC 73 ms
75,664 KB
testcase_20 AC 74 ms
75,900 KB
testcase_21 AC 75 ms
75,480 KB
testcase_22 AC 74 ms
75,680 KB
testcase_23 AC 75 ms
75,628 KB
testcase_24 AC 75 ms
75,556 KB
testcase_25 AC 75 ms
75,764 KB
testcase_26 AC 75 ms
75,700 KB
testcase_27 AC 75 ms
75,708 KB
testcase_28 AC 77 ms
75,696 KB
testcase_29 AC 78 ms
75,424 KB
testcase_30 AC 75 ms
75,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
low=0
high=N+100
while(high-low>1):
    mid=(high+low)//2
    if mid**3<=N:
        low=mid
    else:
        high=mid
if low**3==N:
    print("Yes")
else:
    print("No")
0