結果

問題 No.1286 Stone Skipping
ユーザー y10y10
提出日時 2020-11-13 22:13:12
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 302 bytes
コンパイル時間 1,142 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 82,168 KB
最終ジャッジ日時 2023-09-30 03:03:26
合計ジャッジ時間 5,102 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
76,160 KB
testcase_01 AC 67 ms
71,864 KB
testcase_02 AC 69 ms
71,920 KB
testcase_03 AC 72 ms
71,920 KB
testcase_04 AC 68 ms
71,692 KB
testcase_05 AC 68 ms
71,480 KB
testcase_06 AC 70 ms
71,692 KB
testcase_07 AC 70 ms
71,948 KB
testcase_08 AC 69 ms
71,728 KB
testcase_09 AC 69 ms
71,772 KB
testcase_10 AC 70 ms
71,764 KB
testcase_11 AC 68 ms
71,904 KB
testcase_12 AC 68 ms
71,756 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

ma = int(input())
mi = ma//2

x = 0
while True:
    x = 0
    for p in range(60):
        temp = math.floor(mi*(1/2)**p)
        if temp >= 1:
            x += temp
            if x == ma:
                print(mi)
                exit()
        else:
            mi += 1
            break
0