結果

問題 No.481 1から10
ユーザー T.Stream
提出日時 2020-04-14 13:54:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 302 bytes
コンパイル時間 2,834 ms
コンパイル使用メモリ 195,332 KB
最終ジャッジ日時 2025-01-09 18:36:40
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    long i;
    vector<long> b(9);
    for(i=0; i<9; i++){
    	cin >> b[i];
    }
    sort(b.begin(),b.end());
    for(i=0; i<9; i++){
    	if(b[i]!=i+1){
    		cout << i+1 << endl; return 0;
    	}
    }
    cout << 10 << endl;
	return 0;
}
0