結果
問題 |
No.1286 Stone Skipping
|
ユーザー |
![]() |
提出日時 | 2020-11-13 22:00:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-22 20:49:35 |
合計ジャッジ時間 | 1,838 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 15 |
ソースコード
D = int(input()) def f(x): result = 0 while x != 0: result += x x //= 2 if result >= D: break 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(100, -1, -1): if t - j < 0: continue if f(t - j) == D: print(t - j) exit()