<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>babcs2035</author_name>
  <author_url>https://blog.hatena.ne.jp/babcs2035/</author_url>
  <blog_title>きろく</blog_title>
  <blog_url>https://babcs2035.hateblo.jp/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>yukicoder レベル２問題</anon>
  </categories>
  <description>問題 解法 解答 問題 https://yukicoder.me/problems/no/914 解法 国 [1, N / 2) での買い物の仕方と，国 [N / 2, N] での買い物の仕方をそれぞれ全列挙し，前者のそれぞれの金額について，後者との和が最も K に近くなるような後者の買い物の仕方を二分探索で求める（半分全列挙）．この和を K から引いた値の min が答えとなる．O(M^(N / 2)log(M^(N / 2)))． 解答 https://yukicoder.me/submissions/392999</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbabcs2035.hateblo.jp%2Fentry%2F2019%2F10%2F26%2Fyukicoder%25EF%25BC%259ANo.914_Omiyage&quot; title=&quot;yukicoder：No.914 Omiyage - きろく&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>https://cdn-ak.f.st-hatena.com/images/fotolife/b/babcs2035/20191026/20191026121806.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-26 12:18:18</published>
  <title>yukicoder：No.914 Omiyage</title>
  <type>rich</type>
  <url>https://babcs2035.hateblo.jp/entry/2019/10/26/yukicoder%EF%BC%9ANo.914_Omiyage</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
