結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-11-17 10:53:58 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 179 ms / 2,000 ms | 
| コード長 | 228 bytes | 
| コンパイル時間 | 384 ms | 
| コンパイル使用メモリ | 55,668 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-25 05:46:23 | 
| 合計ジャッジ時間 | 3,225 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include <iostream>
using namespace std;
int main(){
	int N;
	cin>>N;
	unsigned M;
	unsigned K;
	cin>>K;
	int ans=1;
	cout<<1<<endl;
	for(int i=0;i<N-1;i++){
		cin>>M;
		if(M>K){
			ans++;
		}
		cout<<ans<<endl;
	}
	return 0;
}
            
            
            
        