<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://atcoder.jp/contests/abc172/tasks/abc172_c 前提知識 尺取り法 解説 https://atcoder.jp/contests/abc172/submissions/14779347 まずは全探索で考えてみる 机Aからa冊、机Bからb冊取り除くとする。 すると、必要な時間が、A[1]+A[2]+...+A[a] + B[1]+B[2]+...+B[b]となる。 これがK以下であるようなa+bの最小値を答えればいい。 普通にやるとO(NM(N+M))の計算量だけど、A[1]+A[2]+...+A[a]は、以下のような累積和を作っておけば高速に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F06%2F27%2F230511&quot; title=&quot;Tsundoku [AtCoder Beginner Contest 172 C] - はまやんはまやんはまやん&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>2020-06-27 23:05:11</published>
  <title>Tsundoku [AtCoder Beginner Contest 172 C]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/06/27/230511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
