結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-08-25 01:11:28 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 2,000 ms |
| コード長 | 396 bytes |
| 記録 | |
| コンパイル時間 | 1,454 ms |
| コンパイル使用メモリ | 174,216 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-04 18:43:50 |
| 合計ジャッジ時間 | 3,324 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(void) {
int N;
cin >> N;
int rank[N];
ll a;
ll b;
cin >> a;
rank[0] = 1;
for (int i=1; i<N; i++) {
cin >> b;
if (a < b) rank[i] = rank[i-1] + 1;
else rank[i] = rank[i-1];
}
for (int i=0; i<N; i++) {
cout << rank[i] << endl;
}
return 0;
}
teketeke5000