結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
commy
|
| 提出日時 | 2017-10-14 18:56:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 634 ms |
| コンパイル使用メモリ | 68,436 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 14:47:48 |
| 合計ジャッジ時間 | 1,126 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#define REP(i, a, b) for (int i = int(a); i < int(b); i++)
using namespace std;
typedef long long int lli;
int main() {
int num[10] = {};
REP (i, 0, 9) {
int n;
cin >> n;
num[n - 1]++;
}
REP (i, 0, 10) {
if (!num[i]) {
cout << i + 1 << endl;
break;
}
}
return 0;
}
commy