結果

問題 No.1286 Stone Skipping
ユーザー ayaoniayaoni
提出日時 2020-11-13 21:29:00
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 623 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 80,200 KB
最終ジャッジ日時 2023-09-30 02:35:04
合計ジャッジ時間 6,206 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
75,776 KB
testcase_01 AC 69 ms
71,396 KB
testcase_02 AC 73 ms
71,456 KB
testcase_03 AC 71 ms
71,468 KB
testcase_04 AC 70 ms
71,492 KB
testcase_05 AC 71 ms
71,172 KB
testcase_06 AC 71 ms
71,280 KB
testcase_07 AC 72 ms
71,432 KB
testcase_08 AC 69 ms
71,336 KB
testcase_09 AC 71 ms
71,520 KB
testcase_10 AC 71 ms
71,436 KB
testcase_11 AC 72 ms
71,072 KB
testcase_12 AC 73 ms
71,456 KB
testcase_13 AC 76 ms
75,588 KB
testcase_14 AC 73 ms
71,312 KB
testcase_15 AC 75 ms
75,636 KB
testcase_16 AC 72 ms
71,088 KB
testcase_17 AC 72 ms
71,248 KB
testcase_18 AC 72 ms
71,408 KB
testcase_19 AC 71 ms
71,336 KB
testcase_20 AC 73 ms
71,316 KB
testcase_21 AC 73 ms
71,240 KB
testcase_22 AC 75 ms
75,924 KB
testcase_23 TLE -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


D = I()

x = (D+1)//2
for i in range(x,10**18):
    a = 0
    y = i
    while y:
        a += y
        y //= 2
        if a == D:
            print(i)
            exit()
0