<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yoshichi</author_name>
  <author_url>https://blog.hatena.ne.jp/Yoshichi/</author_url>
  <blog_title>Yoshichiの日記</blog_title>
  <blog_url>https://yoshichi9.hatenablog.com/</blog_url>
  <categories>
    <anon>Atcoder</anon>
    <anon>競技プログラミング復習用</anon>
  </categories>
  <description>問題概要 D - Flipping SignsN個の数列Aに対して、任意(i 数列Bを作成する。作成したsum(数列B)が最大となる値を答えよ。 解法(解説AC) 正負判定を行い、負の値が偶数個の場合全て正の値にすることが可能。 負の数が奇数個の場合、任意の値を1つだけ負の値にすることが可能。 なので、負の値が偶数個の場合、すべての値を正にした状態でsum(B)。 負の値が奇数個の場合、abs(A)の中で最も小さい値を負の値にしてsum(B)を取ればよい。 提出コード n = int(input()) a = list(map(int, input().split())) count = 0 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshichi9.hatenablog.com%2Fentry%2F2019%2F04%2F30%2F041628&quot; title=&quot; ABC 125 D - Flipping Signs - Yoshichiの日記&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-04-30 04:16:28</published>
  <title> ABC 125 D - Flipping Signs</title>
  <type>rich</type>
  <url>https://yoshichi9.hatenablog.com/entry/2019/04/30/041628</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
