結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-10-13 11:43:14 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 143 ms / 2,000 ms | 
| コード長 | 326 bytes | 
| コンパイル時間 | 1,046 ms | 
| コンパイル使用メモリ | 68,224 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-14 14:54:38 | 
| 合計ジャッジ時間 | 3,565 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;
int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n; cin >> n;
	int fi; cin >> fi;
	int now=1;
	cout << now << endl;
	for(int i=1;i<n;i++){
		int x; cin >> x;
		if(x>fi)now++;
		cout << now << endl;
	}
}
            
            
            
        