結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-15 13:53:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 68,900 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 18:30:14 |
| 合計ジャッジ時間 | 1,014 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
using namespace std;
int main(){
int N =9, B[N];
for(int i=0; i<N; i++){
cin >> B[i];
}
sort(B, B+N);
for(int i=0; i<=N; i++){
if(i+1!=B[i]){
cout << i+1 << endl;
break;
}
}
}