結果

問題 No.1286 Stone Skipping
ユーザー i_taku
提出日時 2024-06-07 10:34:56
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 730 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 58,240 KB
最終ジャッジ日時 2024-12-25 12:49:36
合計ジャッジ時間 3,491 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

D = int(input())
for d in range(100):
    t = D // 2 + d
    now = 0
    while now < D and t:
        now += t
        t //= 2
    if now == D:
        print(D // 2 + d)
        exit()
print(D)
0