結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2025-08-12 15:29:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 460 bytes |
コンパイル時間 | 976 ms |
コンパイル使用メモリ | 108,312 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-12 15:29:15 |
合計ジャッジ時間 | 2,000 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <algorithm> #include <iostream> #include <iomanip> #include <climits> #include <string> #include <vector> #include <cmath> #include <set> #include <map> using namespace std; using ll = long long; int main(void) { map<int, int> B; for (int i = 0; i < 9; i++) { int temp; cin >> temp; B[temp]++; } for (int i = 1; i <= 10; i++) { if (B.find(i) == B.end()) { cout << i << endl; break; } } return 0; }