結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2017-08-05 07:01:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 460 ms |
コンパイル使用メモリ | 59,612 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 20:07:50 |
合計ジャッジ時間 | 1,031 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }