結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-16 20:49:23 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 171 ms / 2,000 ms |
| コード長 | 282 bytes |
| コンパイル時間 | 1,482 ms |
| コンパイル使用メモリ | 168,560 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 06:39:24 |
| 合計ジャッジ時間 | 4,273 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
#define rep(i,a,n) for (int i = a;i < n;i++)
using namespace std;
int main() {
int n,ans=1; cin >> n;
vector<int> a(n);
rep(i, 0, n) {
cin >> a[i];
}
rep(i,0,n){
if(a[0] < a[i]) ans++;
cout << ans << endl;
}
}