結果

問題 No.504 ゲーム大会(ランキング)
ユーザー toho_cake
提出日時 2017-04-22 09:19:14
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 56,048 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-21 16:02:24
合計ジャッジ時間 3,310 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {

    int N, a, cnt = 1;

    cin >> N >> a;
    for(int i = 0; i < N - 1; i++) {
        cout << cnt << endl;
        int v; cin >> v;
        if(v > a) cnt++;
    }
    cout << cnt << endl;
}
0