結果

問題 No.504 ゲーム大会(ランキング)
ユーザー kyo1
提出日時 2020-09-17 01:09:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 2,726 ms
コンパイル使用メモリ 190,768 KB
最終ジャッジ日時 2025-01-14 15:31:36
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N;
  cin >> N;
  int res = 1, cur;
  cin >> cur;
  cout << 1 << '\n';
  for (int i = 1; i < N; i++) {
    int a;
    cin >> a;
    if (cur < a) res++;
    cout << res << '\n';
  }
  return 0;
}
0