From 8dd80213270d82ed10c946268ac37f7057a96c49 Mon Sep 17 00:00:00 2001 From: sh0723 Date: Wed, 2 Sep 2026 17:00:54 +0900 Subject: [PATCH] =?UTF-8?q?1269=20:=20=EB=8C=80=EC=B9=AD=20=EC=B0=A8?= =?UTF-8?q?=EC=A7=91=ED=95=A9=20solve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/week6/BOJ1269/BOJ1269_V1.cpp | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/week6/BOJ1269/BOJ1269_V1.cpp 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