結果

問題 No.504 ゲーム大会(ランキング)
ユーザー toto6114
提出日時 2019-07-03 13:23:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 556 ms
コンパイル使用メモリ 69,492 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 20:25:48
合計ジャッジ時間 3,674 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
  int n,a[100000],r=1,p;
  cin >> n;
  for(int i=0; i<n; i++) {
      cin >> a[i];
  }
  p=a[0];
  for(int i=0; i<n; i++) {
      if(a[i]>p) {
          r++;
      }
      cout << r << endl;
  }
}
0