結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2017-12-01 04:22:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 173 ms / 2,000 ms |
コード長 | 451 bytes |
コンパイル時間 | 1,608 ms |
コンパイル使用メモリ | 167,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 19:36:36 |
合計ジャッジ時間 | 3,776 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) #define SZ(n) (int)(n).size() #define ALL(n) (n).begin(), (n).end() #define MOD % 1000000007 using namespace std; typedef long long LL; typedef vector<int> VI; int main() { int n; cin >> n; VI ai(n); REP(i, n) { int a; cin >> a; ai[i] = a; } int ans = 1; REP(i, n) { if (ai[i] > ai[0]) ans++; cout << ans << endl; } return 0; }