結果

問題 No.504 ゲーム大会(ランキング)
ユーザー oooooba
提出日時 2021-02-28 20:34:13
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 551 bytes
コンパイル時間 934 ms
コンパイル使用メモリ 108,960 KB
最終ジャッジ日時 2025-01-19 08:17:52
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    int32_t n, ak;
    cin >> n >> ak;
    cout << 1 << endl;
    int32_t x = 1;
    for (auto i = 0; i < n - 1; ++i) {
        int32_t a;
        cin >> a;
        if (ak < a)
            ++x;
        cout << x << endl;
    }
    return 0;
}
0