<?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.504 ゲーム大会(ランキング) - yukicoder最初は1位で、自分より真に大きなスコアがでたら順位が1つ下がる。 n,s,t,rank; main(){ scanf(&quot;%d%d&quot;,&amp;n,&amp;s); rank=1; puts(&quot;1&quot;); for(int i=1;i&lt;n;i++){ scanf(&quot;%d&quot;,&amp;t); if(t&gt;s)rank++; printf(&quot;%d\n&quot;,rank); } } 1番目,2番目の値に対してのみ特殊な処理が必要なので、その辺をmain第一引数を使っていい感じにする n,s,t;main(i){for(;~scanf(&quot;%d&quot;,&amp;n);i&amp;&amp;pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugarknri.hatenablog.com%2Fentry%2F2017%2F06%2F15%2F040336&quot; title=&quot;yukicoder No.504 ゲーム大会(ランキング) - メモ&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-06-15 04:03:36</published>
  <title>yukicoder No.504 ゲーム大会(ランキング)</title>
  <type>rich</type>
  <url>https://sugarknri.hatenablog.com/entry/2017/06/15/040336</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
