<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
    <anon>1200</anon>
  </categories>
  <description>Quiz https://codeforces.com/contest/1512/problem/D AC https://codeforces.com/contest/1512/submission/113376076 解説 editorialと違う解法だったので書いておく Aの和はどれだろうか？ Bを昇順ソートして、Aの和はBの最後端か、その手前に限られる その2パターンをチェックすればいい void solve(){ ll N;cin&gt;&gt;N; VI A(N+2); rep(i, N+2)cin &gt;&gt; A[i]; SORT(A); // 和がA[N]の場合 { ll sum=0; rep(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2021%2F04%2F18%2F122851&quot; title=&quot;D.Corrupted Array - perogram&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/p/peroon/20210418/20210418122827.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-04-18 12:28:51</published>
  <title>D.Corrupted Array</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2021/04/18/122851</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
