結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-04-21 22:21:44 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 161 ms / 2,000 ms | 
| コード長 | 544 bytes | 
| コンパイル時間 | 1,354 ms | 
| コンパイル使用メモリ | 108,696 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-20 05:14:30 | 
| 合計ジャッジ時間 | 3,219 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
ソースコード
#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "math.h"
#include "utility"
#include "string"
#include "map"
#include "unordered_map"
#include "iomanip"
#include "random"
using namespace std;
const long long int MOD = 1000000007;
int N;
int num;
int ans = 1;
int box;
int main() {
	cin >> N;
	cin >> num;
	cout << "1" << endl;
	for (int i = 1; i < N; i++) {
		cin >> box;
		if (box > num)ans++;
		cout << ans << endl;
	}
	return 0;
}
            
            
            
        