結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-31 00:09:47 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 2,000 ms |
| + 576µs | |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 1,076 ms |
| コンパイル使用メモリ | 208,596 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-10-12 21:59:01 |
| 合計ジャッジ時間 | 4,033 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin>>n;
int rank = 1;
int kscore;
cin >> kscore;
cout << rank << endl;
for (int i = 1; i < n; i++) {
int a;
cin >> a;
if (a > kscore) rank++;
cout << rank << endl;
}
return 0;
}