<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com 解法 問題の様にセンサを取り付けると, センサはサイクロイドと呼ばれる軌道を描きます。 d = f-s とすると, d の の部分の倍数の部分はどうなろうと関係ないので, 結局のところ調べるべき図形は以下のような部分だけになります。 は左右で等しくなるのが最適でしょう。 これらの情報が与えられた時, をどう求めるかを考えます。図を見るとわかるように, です。 は計算できるので, この値になるように を調整したいですが, が単調増加関数であることを用いると, これは二分探索で求めることが出来ます。このようにして を求めます。すると, この区間の中で実際に走る距…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F11%2F09%2F190925&quot; title=&quot;Codeforces Round #330 (Div. 1)  B. Max and Bike - mayoko’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://chart.apis.google.com/chart?cht=tx&amp;chl=%202%5Cpi%20r</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-11-09 19:09:25</published>
  <title>Codeforces Round #330 (Div. 1)  B. Max and Bike</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/11/09/190925</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
