<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugarknri</author_name>
  <author_url>https://blog.hatena.ne.jp/sugarknri/</author_url>
  <blog_title>メモ</blog_title>
  <blog_url>https://sugarknri.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題はこちら No.178 美しいWhitespace (1) - yukicoder s[i]:=a[i]+4*b[i]、M:=max(s[i])としたとき ∀i.M≡s[i] mod2 なら Σ(M-s[i])/2 を、さもなくば-1を出力する Σの計算はintだとオーバーフローすることに注意 int main(){ long m=0,s=0; int a[1010],n,i,t; scanf(&quot;%d&quot;,&amp;n); for(i=0;i&lt;n;i++){ scanf(&quot;%d%d&quot;,a+i,&amp;t); a[i]+=t*4; if(m&lt;a[i])m=a[i]; } for(i=0;i&lt;n;i++){ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2016%2F05%2F16%2F173706&quot; title=&quot;yukicoder No.178 美しいWhitespace (1) - メモ&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>2016-05-16 17:37:06</published>
  <title>yukicoder No.178 美しいWhitespace (1)</title>
  <type>rich</type>
  <url>https://sugarknri.hatenablog.com/entry/2016/05/16/173706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
