結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
nksk
|
| 提出日時 | 2017-04-21 22:32:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| コード長 | 504 bytes |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 73,240 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-20 05:26:50 |
| 合計ジャッジ時間 | 2,903 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<cstdio>
#include <iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<vector>
#include<functional>
#include<cmath>
#include<map>
#include<stack>
#include<set>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main()
{
int N; cin >> N;
int score = 1,a_score;
int res[100001],a[100001];
for (int i = 0; i < N; i++) {
cin >> a[i];
if (a[0] < a[i])score++;
res[i] = score;
}
for (int i = 0; i < N; i++)
cout << res[i] << endl;
return 0;
}
nksk