結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2018-10-15 13:52:28 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 649 ms |
コンパイル使用メモリ | 68,808 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 18:30:13 |
合計ジャッジ時間 | 1,295 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 1 |
ソースコード
#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; } } }