<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder500点</anon>
    <anon>ABC-E</anon>
    <anon>緑色diff</anon>
    <anon>N個のものうち1個を変更・削除したものを解く</anon>
    <anon>データ構造テク：前処理</anon>
    <anon>累積和テク:左右両端からの累積和や累積結果を前処理</anon>
    <anon>累積和</anon>
    <anon>最適化の考察：最適解の形を考える</anon>
    <anon>最適化の考察：変形しても悪化しない</anon>
    <anon>データ構造テク：差分更新</anon>
    <anon>クエリ処理問題</anon>
    <anon>二分探索:lower_bound</anon>
    <anon>二分探索</anon>
    <anon>数列</anon>
    <anon>累積和テク:累積和や累積結果を前処理しておく</anon>
    <anon>ソート:要素の差について考えやすい形にする</anon>
    <anon>NoviSteps1Q</anon>
  </categories>
  <description>頭整理が大変だけど、考え方はわかる。 問題へのリンク 問題概要 は正の奇数である。 個の整数 が与えられる。以下の 個のクエリに答えよ。 各クエリでは整数 が与えられる 個の整数 を 2 個ずつペアにして 組のペアを作る それぞれのペアの「数値の差」の総和として、考えられる最小値を答えよ 制約 考えたこと まずは 1 個のクエリに答えることを考える。これは比較的簡単にわかる。 個の整数を小さい順に並べて としたとき、 をペアにする (差は ) をペアにする (差は ) ... をペアにする (差は ) という風にするのが最適となる。以上で、1 つのクエリに対する問題は解けた。 クエリ処理へ 毎…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F11%2F02%2F021500&quot; title=&quot;AtCoder ABC 181 E - Transformable Teacher (1Q, 緑色, 500 点) - けんちょんの競プロ精進記録&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.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-02 02:15:00</published>
  <title>AtCoder ABC 181 E - Transformable Teacher (1Q, 緑色, 500 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/11/02/021500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
