結果

問題 No.504 ゲーム大会(ランキング)
ユーザー chacoder1chacoder1
提出日時 2021-02-18 20:30:54
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 3,917 ms
コンパイル使用メモリ 198,276 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-13 04:01:20
合計ジャッジ時間 7,351 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
  int n;
  cin>>n;
  int a[n];
  rep(i,n) cin>>a[i];
  int cnt=1;
  cout<<1<<endl;
  for(int i=1;i<n;i++){
    if(a[i]>a[0]) cnt++;
    cout<<cnt<<endl;
  }
  return 0;
}
0