結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2017-08-05 07:01:31 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 284µs | |
| コード長 | 380 bytes |
| 記録 | |
| コンパイル時間 | 313 ms |
| コンパイル使用メモリ | 75,136 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-14 05:18:41 |
| 合計ジャッジ時間 | 1,417 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
int main(void) {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
int B = 0, ans = 0;
for (int i = 1; i <= 9; i++) {
std::cin >> B;
if (i != B) {
ans = i;
i++;
}
}
if (ans == 0) {
std::cout << 10 << std::endl;
}
else {
std::cout << ans << std::endl;
}
return 0;
}
dgd1724