結果
| 問題 | 
                            No.1286 Stone Skipping
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-11-13 23:40:24 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 70 ms / 2,000 ms | 
| コード長 | 201 bytes | 
| コンパイル時間 | 135 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-23 09:55:13 | 
| 合計ジャッジ時間 | 2,469 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 26 | 
ソースコード
d=int(input());a,R=d,range for k in R(65): l,r=0,d while r-l>1: m=(l+r)//2;s,x=0,m for i in R(k):s+=x;x//=2 if s<d:l=m else:r=m s,x=0,r for i in R(k):s+=x;x//=2 if s==d:a=min(a,r) print(a)