結果

問題 No.481 1から10
ユーザー Kurichan0806
提出日時 2017-10-31 19:38:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 653 ms
コンパイル使用メモリ 73,152 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 11:12:44
合計ジャッジ時間 1,275 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <iomanip>
using namespace std;

int main(void) {
	int x;
	for (int i = 1; i <= 10; i++) {
		cin >> x;
		if (x != i) {
			cout << i << endl;
			return 0;
		}
	}
	return 0;
}
0