<?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://yukicoder.me/problems/no/846 解説 ceil(N/P)=AであるNの範囲は、[P*(A-1)+1,P*A]である。 他のメダルについても同様に条件を満たすNの範囲が存在する。 他のメダルについては、そのメダルだけの枚数で計算することになってしまうので、B+=A, C+=Bとして、 銀メダル以上、銅メダル以上として計算をしよう。 すべてのメダルの条件を満たす必要があるので、全ての区間に入っている区間を計算する。 区間[a,b]と区間[c,d]のどちらにも含まれる区間は、[max(a,c), min(b,d)]であるので、これを計算していく。 最後に区間…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F07%2F06%2F093819&quot; title=&quot;メダル [yukicoder No.846] - はまやんはまやんはまやん&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>2019-07-06 09:38:19</published>
  <title>メダル [yukicoder No.846]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/07/06/093819</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
