結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2017-04-27 00:53:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 535 ms |
| コンパイル使用メモリ | 62,548 KB |
| 実行使用メモリ | 13,764 KB |
| 最終ジャッジ日時 | 2024-09-13 13:05:10 |
| 合計ジャッジ時間 | 4,252 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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