結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
OR6107
|
| 提出日時 | 2020-11-02 17:39:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 499 bytes |
| コンパイル時間 | 1,777 ms |
| コンパイル使用メモリ | 166,932 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-22 06:24:25 |
| 合計ジャッジ時間 | 2,313 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> b(9);
for (int i = 0; i < 9; i++) {
cin >> b.at(i);
}
if (b.at(0) == 2) {
cout << 1 << endl;
return 0;
}
if (b.at(8) == 9) {
cout << 10 << endl;
return 0;
}
for (int i = 1; i < 9; i++) {
if (b.at(i) == b.at(i - 1) + 1) {
continue;
} else {
cout << i + 1 << endl;
break;
}
}
return 0;
}
OR6107