結果

問題 No.504 ゲーム大会(ランキング)
ユーザー neko_the_shadow
提出日時 2019-03-29 15:20:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 693 ms
コンパイル使用メモリ 72,756 KB
最終ジャッジ日時 2025-01-07 00:35:38
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>

int main() {
    int n, k;
    std::cin >> n >> k;
    
    std::vector<int> v = {1};
    int c = 1;
    for (int i = 0; i < n - 1; i++) {
        int a;
        std::cin >> a;
        if (k < a) c++;
        v.push_back(c);
    }

    for (int e : v) std::cout << e << std::endl;
}
0