結果
| 問題 |
No.504 ゲーム大会(ランキング)
|
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-07-11 20:37:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 171 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 745 ms |
| コンパイル使用メモリ | 75,076 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-07 15:07:31 |
| 合計ジャッジ時間 | 3,286 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
int main(){
int n; cin >> n;
int ran = 1;
vector<int>a(n);
rep(i,n){ cin >> a[i]; }
rep(i,n){ if(a[0]<a[i]){ ran++; } cout << ran << endl; }
return 0;
}
r2en_