結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2017-04-27 00:53:31 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 361 bytes |
| 記録 | |
| コンパイル時間 | 506 ms |
| コンパイル使用メモリ | 80,492 KB |
| 実行使用メモリ | 9,984 KB |
| 最終ジャッジ日時 | 2026-04-04 05:24:16 |
| 合計ジャッジ時間 | 4,333 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, char *argv[])
{
int n, k, a[100000];
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a[i];
a[i] = -a[i];
}
k = a[0];
for (int i = 0; i < n; ++i) {
sort(a, a + i + 1);
int ans = find(a, a + i + 1, k) - a + 1;
cout << ans << endl;
}
return 0;
}
hotpepsi