結果
問題 |
No.1286 Stone Skipping
|
ユーザー |
![]() |
提出日時 | 2020-11-13 22:22:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 346 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 75,776 KB |
最終ジャッジ日時 | 2024-07-22 21:12:59 |
合計ジャッジ時間 | 3,544 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 WA * 2 |
ソースコード
def check(x,D): res=0 while(x): res+=x x//=2 if res==D: return True return False D=int(input()) ans=D for x in range(max(0,D//2-100000),D//2+100000): if check(x,D): ans=min(ans,x) print(ans)