結果

問題 No.504 ゲーム大会(ランキング)
ユーザー rikarika
提出日時 2017-04-21 22:24:25
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 773 bytes
コンパイル時間 1,311 ms
コンパイル使用メモリ 80,968 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-27 11:11:29
合計ジャッジ時間 2,749 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 153 ms
4,376 KB
testcase_08 AC 154 ms
4,380 KB
testcase_09 AC 152 ms
4,376 KB
testcase_10 AC 155 ms
4,380 KB
testcase_11 AC 154 ms
4,380 KB
testcase_12 AC 143 ms
4,376 KB
testcase_13 AC 140 ms
4,376 KB
testcase_14 AC 154 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
#include<math.h>
#include<string>
#include<string.h>
#include<stack>
#include<queue>
#include<vector>
#include<utility>
#include<set>
#include<map>
#include<stdlib.h>
#include<iomanip>

using namespace std;

#define ll long long
#define ld long double
#define EPS 0.0000000001
#define INF 1e9
#define MOD 1000000007
#define rep(i,n) for(i=0;i<n;i++)
#define loop(i,a,n) for(i=a;i<n;i++)
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)

typedef vector<int> vi;
typedef pair<int,int> pii;

int main(void) {
  int i,j;
  int n;
  cin>>n;
  vi a(n);
  rep(i,n)cin>>a[i];
  int k=a[0];
  int r=1;
  cout<<1<<endl;
  for(i=1;i<n;i++){
    if(k<a[i])r++;
    cout<<r<<endl;
  }
}
0