<?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.476 正しくない平均 - yukicoderやるだけ 入力が全て整数なので、平均×個数＝合計 となっているかどうかで調べると、小数を使わずに済む 10^9*10=10^10&gt;2^32なので32bitでは足りない事に注意（撃墜ケースも用意されている） int main(){ int a,n,s,i,x; scanf(&quot;%d%d&quot;,&amp;n,&amp;a); s=0; for(i=0;i&lt;n;i++){ scanf(&quot;%d&quot;,&amp;x); s+=x; } puts((long)n*a==s?&quot;YES&quot;:&quot;NO&quot;); return 0; } さて、できるだけ変数を減らすことを考えると、n,aを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2017%2F01%2F31%2F001904&quot; title=&quot;yukicoder No.476 正しくない平均 - メモ&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>2017-01-31 00:19:04</published>
  <title>yukicoder No.476 正しくない平均</title>
  <type>rich</type>
  <url>https://sugarknri.hatenablog.com/entry/2017/01/31/001904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
