結果

問題 No.1585 Cubic Number
ユーザー KudeKude
提出日時 2021-07-08 22:21:28
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 170 bytes
コンパイル時間 283 ms
使用メモリ 75,896 KB
最終ジャッジ日時 2023-02-01 19:54:27
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 73 ms
75,872 KB
testcase_01 AC 75 ms
75,544 KB
testcase_02 AC 73 ms
75,756 KB
testcase_03 AC 76 ms
75,660 KB
testcase_04 AC 73 ms
75,824 KB
testcase_05 AC 77 ms
75,728 KB
testcase_06 AC 75 ms
75,816 KB
testcase_07 AC 74 ms
75,540 KB
testcase_08 AC 74 ms
75,720 KB
testcase_09 AC 76 ms
75,488 KB
testcase_10 AC 75 ms
75,496 KB
testcase_11 AC 75 ms
75,492 KB
testcase_12 AC 74 ms
75,796 KB
testcase_13 AC 74 ms
75,724 KB
testcase_14 AC 75 ms
75,764 KB
testcase_15 AC 76 ms
75,704 KB
testcase_16 AC 77 ms
75,564 KB
testcase_17 AC 74 ms
75,748 KB
testcase_18 AC 76 ms
75,660 KB
testcase_19 AC 73 ms
75,496 KB
testcase_20 AC 74 ms
75,704 KB
testcase_21 AC 72 ms
75,740 KB
testcase_22 AC 74 ms
75,896 KB
testcase_23 AC 74 ms
75,648 KB
testcase_24 AC 74 ms
75,768 KB
testcase_25 AC 73 ms
75,496 KB
testcase_26 AC 74 ms
75,592 KB
testcase_27 AC 73 ms
75,688 KB
testcase_28 AC 73 ms
75,836 KB
testcase_29 AC 73 ms
75,552 KB
testcase_30 AC 73 ms
75,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = 0
r = 10 ** 6 + 1
while r - l > 1:
    c = r + l >> 1
    if c ** 3 <= n:
        l = c
    else:
        r = c
print('Yes' if l ** 3 == n else 'No')
0