結果

問題 No.504 ゲーム大会(ランキング)
ユーザー autumn-eel
提出日時 2017-04-21 22:23:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 1,478 ms
コンパイル使用メモリ 166,056 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-20 05:16:49
合計ジャッジ時間 2,583 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;

int main() {
	int n; scanf("%d", &n);
	int cnt = 0, p; scanf("%d", &p);
	puts("1");
	rep(i, n - 1) {
		int a; scanf("%d", &a);
		if (a > p)cnt++;
		printf("%d\n", cnt + 1);
	}
}
0