結果

問題 No.504 ゲーム大会(ランキング)
ユーザー legosuke
提出日時 2017-10-23 03:23:03
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 1,158 ms
コンパイル使用メモリ 160,172 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 14:54:19
合計ジャッジ時間 3,769 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(void) {
  int n;
  cin >> n;

  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }

  int ans = 1;
  for (int i = 0; i < n; i++) {
    if (a[i] > a[0]) {
      ans++;
    }
    cout << ans << endl;
  }

  return 0;
}
0