結果

問題 No.481 1から10
ユーザー gemy
提出日時 2023-11-21 15:41:34
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 190,904 KB
最終ジャッジ日時 2025-02-17 22:44:27
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
int main() {
    // Input And Output
    int x = 1;
    rep(i, 9) {
        int B;
        cin >> B;
        if (B == x) ++x;
        else {
            cout << x << endl;
            return 0;
        }
    }
}
0