結果
| 問題 |
No.481 1から10
|
| ユーザー |
das08
|
| 提出日時 | 2019-10-25 14:12:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 906 ms |
| コンパイル使用メモリ | 57,464 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 15:50:07 |
| 合計ジャッジ時間 | 988 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int ans=0;
vector<int> a(9);
for (int i=1;i<10;i++){
cin>>a[i];
if (a[i]!=i){
ans=i;
break;
}
}
if (ans==0){
cout<<10;
}else{
cout<<ans;
}
//cout<<ans<<endl;
}
das08