結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  tenkyu9 | 
| 提出日時 | 2018-03-25 02:21:35 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 173 ms / 2,000 ms | 
| コード長 | 485 bytes | 
| コンパイル時間 | 762 ms | 
| コンパイル使用メモリ | 79,712 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-25 04:37:46 | 
| 合計ジャッジ時間 | 3,675 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<cstring>
#include<map>
#include<vector>
#include<queue>
#include<climits>
using namespace std;
typedef long long int ll;
int main(){
	ll n, a[100000];
	cin >> n;
	for(int i=0; i<n; i++){
		cin >> a[i];
	}
	int score=a[0], ans=1;
	cout << ans << endl;
	for(int i=1; i<n; i++){
		if(score<a[i]){
			ans++;
			cout << ans << endl;
		} else {
			cout << ans << endl;
		}
	}
  return 0;
}
            
            
            
        