結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
teketeke5000
|
| 提出日時 | 2017-08-25 01:11:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 166 ms / 2,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 1,401 ms |
| コンパイル使用メモリ | 159,596 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 14:26:58 |
| 合計ジャッジ時間 | 4,582 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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