diff --git a/src/week6/BOJ1269/BOJ1269_V1.cpp b/src/week6/BOJ1269/BOJ1269_V1.cpp new file mode 100644 index 0000000..f00b5dc --- /dev/null +++ b/src/week6/BOJ1269/BOJ1269_V1.cpp @@ -0,0 +1,34 @@ +#include +using namespace std; +int main() { + + ios_base::sync_with_stdio(false); + cin.tie(nullptr); + cout.tie(nullptr); + + map m; + int a,b; + cin >> a >> b; + for (int i=0; i> num; + m[num] = 1; + } + for (int i=0; i> num; + if (m[num]) { + m.erase(num); + } else { + m[num] = 1; + } + } + + cout << m.size() << '\n'; + + + + + + return 0; +} \ No newline at end of file