結果

問題 No.504 ゲーム大会(ランキング)
ユーザー KiYugadgeterKiYugadgeter
提出日時 2019-03-31 22:47:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 454 ms
コンパイル使用メモリ 62,336 KB
実行使用メモリ 5,012 KB
最終ジャッジ日時 2023-08-14 15:56:58
合計ジャッジ時間 3,788 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,936 KB
testcase_01 AC 2 ms
5,004 KB
testcase_02 AC 1 ms
4,936 KB
testcase_03 AC 1 ms
4,936 KB
testcase_04 AC 1 ms
4,936 KB
testcase_05 AC 1 ms
5,000 KB
testcase_06 AC 1 ms
4,936 KB
testcase_07 AC 146 ms
4,936 KB
testcase_08 AC 143 ms
5,008 KB
testcase_09 AC 145 ms
4,996 KB
testcase_10 AC 142 ms
4,936 KB
testcase_11 AC 142 ms
5,000 KB
testcase_12 AC 133 ms
5,000 KB
testcase_13 AC 137 ms
5,012 KB
testcase_14 AC 147 ms
4,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main() {
    int l, k, t;
    int rank = 1;
    std::cin >> l;
    std::cin >> k;
    std::cout << 1 << std::endl;
    for (int i = 0; i < l - 1; i++) {
        std::cin >> t;
        if (t > k) {
            rank++;
        }
    std::cout << rank << std::endl;
    }
}
0