結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  picakun | 
| 提出日時 | 2017-06-08 00:40:32 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 177 ms / 2,000 ms | 
| コード長 | 449 bytes | 
| コンパイル時間 | 682 ms | 
| コンパイル使用メモリ | 66,132 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-22 12:47:09 | 
| 合計ジャッジ時間 | 3,068 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<iomanip>
#define RREP(i,s,e) for (i = s; i >= e; i--)
#define rrep(i,n) RREP(i,n,0)
#define REP(i,s,e) for (i = s; i < e; i++)
#define rep(i,n) REP(i,0,n)
#define INF 100000000
using namespace std;
int main(){
	int n;
	cin >> n;
	int a[n];
	int i;
	rep(i,n)
		cin >> a[i];
	int ans = 1;
	rep(i,n){
		if(a[0] < a[i])
			ans++;
		cout << ans <<endl;
	}
	return 0;
}
            
            
            
        