結果

問題 No.481 1から10
ユーザー いろどり
提出日時 2017-03-08 19:21:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 704 ms
コンパイル使用メモリ 53,904 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 19:23:51
合計ジャッジ時間 955 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

//1から10

#include <iostream>

using namespace std;

int b[9];

int main() {
    int i;
    bool NotTen = false;
    for(i = 0; i < 9; i++) {
        cin >> b[i];
        if(b[i] != i + 1) {
            NotTen = true;
            break;
        }
    }
    if(NotTen == true) cout << i + 1 << endl;
    else cout << 10 << endl;

    return 0;    
}
0