<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>UVa</anon>
  </categories>
  <description>解説 平均取って価値を掛けて総和取れみたいなことを言っているが、つまり入力の３つの要素の真ん中を無視して足しあわせろということ。 #include &lt;iostream&gt; using namespace std; int main() { int Tc; cin &gt;&gt; Tc; while(Tc--) { int N; cin &gt;&gt; N; int sum = 0; while(N--) { int a, b, c; cin &gt;&gt; a &gt;&gt; b &gt;&gt; c; sum += a*c; } cout &lt;&lt; sum &lt;&lt; endl; } return 0; }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140906%2F1409996179&quot; title=&quot;UVa10300 Ecological Premium - Logfiles&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>2014-09-06 18:36:19</published>
  <title>UVa10300 Ecological Premium</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140906/1409996179</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
