結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  Yut176 | 
| 提出日時 | 2017-06-10 15:53:06 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 180 ms / 2,000 ms | 
| コード長 | 458 bytes | 
| コンパイル時間 | 901 ms | 
| コンパイル使用メモリ | 81,920 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-24 15:40:15 | 
| 合計ジャッジ時間 | 3,904 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int r = 1;
  int s = 0;
  int tmp;
  cin >> s;
  cout << 1 << endl;
  for(int i=1; i<n; i++){
    cin >> tmp;
    if( tmp > s ) r++;
    cout << r << endl;
  }
  return 0;
}
// EOF
            
            
            
        