結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-10-01 23:03:59 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 157 ms / 2,000 ms | 
| コード長 | 381 bytes | 
| コンパイル時間 | 1,890 ms | 
| コンパイル使用メモリ | 186,952 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-19 15:45:36 | 
| 合計ジャッジ時間 | 4,205 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#define _GLIBCXX_DEBUG
#define ll long long
#define INF 1000000000;
#define INF_B 1000000000000000000;
#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
int main(){
  int N; cin >> N;
  int sco; cin >> sco;
  int ans = 1;
  cout << ans << endl;
  for(int i = 1; i < N; i++){
    int A; cin >> A;
    if(sco < A) ans++;
    cout << ans << endl;
  }
}
            
            
            
        