結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2017-08-05 06:58:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 571 ms |
コンパイル使用メモリ | 59,608 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 20:01:16 |
合計ジャッジ時間 | 1,160 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 1 |
ソースコード
#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++; } } std::cout << ans << std::endl; return 0; }