結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
hamray
|
| 提出日時 | 2017-11-16 18:45:57 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 557 bytes |
| 記録 | |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 77,992 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 06:29:31 |
| 合計ジャッジ時間 | 1,047 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<algorithm>
#include<vector>
#include<math.h>
#include<stack>
#include <typeinfo>
using namespace std;
int main(void){
vector<int> v; int s;
for(int i = 0; i < 10; i++){
cin >> s;
v.push_back(s);
}
sort(v.begin(), v.end());
int cnt = 1, ans = 0;
for(int i = 0; i < 10; i++){
if(v[i] == cnt){
cnt++;
}else{
ans = cnt;
break;
}
}
cout << ans << endl;
return 0;
}
hamray