結果

問題 No.504 ゲーム大会(ランキング)
ユーザー nnasennnasen
提出日時 2017-12-01 04:18:27
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 449 bytes
コンパイル時間 1,621 ms
コンパイル使用メモリ 166,536 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-18 14:01:48
合計ジャッジ時間 3,831 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 154 ms
4,376 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i = (a); i < (b); ++i)
#define REP(i,n) FOR(i,0,n)
#define SZ(n) (int)(n).size()
#define ALL(n) (n).begin(), (n).end()
#define MOD % 1000000007
using namespace std;
typedef long long LL;
typedef vector<int> VI;


int main() {
	int n;
	cin >> n;
	VI ai(n);
	REP(i, n) {
		int a;
		cin >> a;
		ai[i] = a;
	}
	int ans = 1;
	REP(i, n) {
		if (ai[i] > ans) ans++;
		cout << ans << endl;
	}
	return 0;
}
0