<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kane-please</author_name>
  <author_url>https://blog.hatena.ne.jp/kane-please/</author_url>
  <blog_title>空飛ぶセロ弾き</blog_title>
  <blog_url>https://kane-please.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>標準入力の書き方 AtCoderの初心者向け問題を解きながら、いきなり標準入力の受け取り方で詰まったのでメモしておく。 入力 例えば、以下のように標準入力から与えられる値を受け取りたい時を考える。（AtCoder Beginners Selectionrの「Shift only」） 3 8 12 40 コード 以下のように書けばいいらしい。 #include &lt;iostream&gt; int main() { int n; std::cin &gt;&gt; n; int l, i = 0, a[n]; while (std::cin &gt;&gt; l) { a[i] = l; i++; if (i &gt;= n) { …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkane-please.hatenablog.com%2Fentry%2F2018%2F09%2F16%2F195813&quot; title=&quot;【C++】標準入力の書き方 - 空飛ぶセロ弾き&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>2018-09-16 19:58:13</published>
  <title>【C++】標準入力の書き方</title>
  <type>rich</type>
  <url>https://kane-please.hatenablog.com/entry/2018/09/16/195813</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
