回答編集履歴
1
edit
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
一部無駄な部分がありますが。
|
1
|
+
~~一部無駄な部分がありますが。~~
|
2
|
+
|
3
|
+
こっそり`unordered_set`にすり替えておく…
|
2
4
|
|
3
5
|
|
4
6
|
|
@@ -8,13 +10,13 @@
|
|
8
10
|
|
9
11
|
#include <algorithm>
|
10
12
|
|
11
|
-
#include <
|
13
|
+
#include <unordered_set>
|
12
14
|
|
13
15
|
|
14
16
|
|
15
17
|
int main() {
|
16
18
|
|
17
|
-
std::
|
19
|
+
std::unordered_set<int> lookup = {1, 2, 3};
|
18
20
|
|
19
21
|
int a;
|
20
22
|
|