<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>SRM</anon>
  </categories>
  <description>問題文 本来の授業時間 d が与えられる。授業の開始を t 遅らせるとき、更に t^2 の時間だけ授業時間が少なくなる。授業時間をできるだけ少なくするための t を求めよ。解説 入力が10^18なので普通に線形探索は不可。二分探索しても良いが、整数型で探索範囲は削れる。方法はいくつか有るようだが、一つの例として√を整数切り捨てで計算したとき t の値が √(d+1) * √(d+1) 以上にはならないことを利用すると探索範囲を大幅に削ることが出来る。そこから線形探索で t の値をデクリメントしながら整数切り捨ての計算で二乗が d と一致したときの t の値がちょうど答え。解はすぐ見つかる。以下…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20141005%2F1412466132&quot; title=&quot;SRM635 Div2Med QuadraticLaw - Logfiles&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-10-05 08:42:12</published>
  <title>SRM635 Div2Med QuadraticLaw</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20141005/1412466132</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
