結果

問題 No.504 ゲーム大会(ランキング)
ユーザー mayoimayoi
提出日時 2017-05-04 08:03:51
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 484 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 162,860 KB
実行使用メモリ 4,356 KB
最終ジャッジ日時 2023-10-12 06:50:20
合計ジャッジ時間 4,179 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,352 KB
testcase_01 AC 1 ms
4,356 KB
testcase_02 AC 1 ms
4,352 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 175 ms
4,348 KB
testcase_08 AC 169 ms
4,352 KB
testcase_09 AC 173 ms
4,348 KB
testcase_10 AC 170 ms
4,352 KB
testcase_11 AC 173 ms
4,348 KB
testcase_12 AC 162 ms
4,356 KB
testcase_13 AC 156 ms
4,348 KB
testcase_14 AC 171 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define  re(i,j,n) for(li i=(j);i<(n);i++)
#define  rep(i,n) re(i,0,(n))
#define  all(a) begin(a),end(a)
#define  pb push_back
using namespace std;
typedef long int li;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<li> vli;
typedef vector<string> vs;


int main()
{
    int n;
    cin>>n;
    li k,a,p=1;
    cin>>k;
    cout<<1<<endl;
    rep(i,n-1) {
        cin>>a;
        if(a>k)p++;
        cout<<p<<endl;
    }
    return 0;
}
0