結果
問題 |
No.1286 Stone Skipping
|
ユーザー |
![]() |
提出日時 | 2020-11-13 21:54:21 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,276 KB |
実行使用メモリ | 70,764 KB |
最終ジャッジ日時 | 2024-07-22 20:46:01 |
合計ジャッジ時間 | 6,559 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 -- * 2 |
other | -- * 26 |
ソースコード
D = int(input()) def f(x): result = 0 while x != 0 and result < D: result += x x //= 2 return result for i in range(60, 0, -1): t = D * (2 ** (i - 1)) // (2 ** i - 1) if f(t) == D: for j in range(-10, 1): if f(t + j) == D: print(t + j) exit()