結果

問題 No.504 ゲーム大会(ランキング)
ユーザー inori
提出日時 2017-04-25 09:59:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 176 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 55,716 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 08:27:17
合計ジャッジ時間 3,955 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main()
{
	int N,ans=1;
	int a0,i;
	long a;

	cin >> N >> a0;
	cout << 1 << '\n';
	for (i = 1; i < N; ++i) {
		cin >> a;
		if (a > a0) ans++;
		cout << ans << endl;
	}
	return 0;
}
0