結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  WA_TLE | 
| 提出日時 | 2017-05-06 13:26:34 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 179 ms / 2,000 ms | 
| コード長 | 497 bytes | 
| コンパイル時間 | 688 ms | 
| コンパイル使用メモリ | 63,212 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-14 13:52:07 | 
| 合計ジャッジ時間 | 3,099 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include<string>
#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;
typedef long long int llint;
#define pub push_back
#define mp make_pair
#define fir first
#define sec second
const int big=((llint)1<<30);
const llint mod=91254389315231;//そすー
const int lol=101;
//aabbaabb
//
int main(void){
	int n,q,gen=1,k;
	cin>>n;cin>>k;cout<<1<<endl;n--;
	for(;n>0;n--){
		cin>>q;
		if(q>k){ gen++; }
		cout<<gen<<endl;
	}
	return 0;
}
            
            
            
        