結果
問題 |
No.481 1から10
|
ユーザー |
![]() |
提出日時 | 2018-10-28 18:06:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 67,292 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 07:12:06 |
合計ジャッジ時間 | 1,233 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <iostream> #include <map> int main(int argc, char *argv[]) { std::map<int, int> valid_map({ {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {7, 0}, {8, 0}, {9, 0}, {10, 0} }); int input; while (std::cin >> input) { valid_map.erase(input); } auto map_iter = valid_map.begin(); std::cout << map_iter->first << std::endl; return 0; }