From a5eec80db69f6f12b92a613a7a625d92b7053c51 Mon Sep 17 00:00:00 2001 From: sh0723 Date: Thu, 3 Sep 2026 14:18:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?2776=20:=20=EC=95=94=EA=B8=B0=EC=99=95=20so?= =?UTF-8?q?lve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/week6/BOJ2776/BOJ2776_V1.cpp | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/week6/BOJ2776/BOJ2776_V1.cpp diff --git a/src/week6/BOJ2776/BOJ2776_V1.cpp b/src/week6/BOJ2776/BOJ2776_V1.cpp new file mode 100644 index 0000000..ceae9c0 --- /dev/null +++ b/src/week6/BOJ2776/BOJ2776_V1.cpp @@ -0,0 +1,39 @@ +#include +using namespace std; +int T,N,M; +int main() { + + ios_base::sync_with_stdio(false); + cin.tie(nullptr); + cout.tie(nullptr); + + cin >> T; + vector> ret; + for (int i=0; i n1; + cin >> N; + for (int j=0; j> num; + n1[num] = 1; + } + ret.push_back(vector()); + cin >> M; + for (int j=0; j> num; + if (n1.find(num) != n1.end()) ret[i].push_back(1); + else ret[i].push_back(0); + } + } + + for (int i=0; i Date: Thu, 3 Sep 2026 14:21:49 +0900 Subject: [PATCH 2/2] =?UTF-8?q?2776=20:=20=EC=95=94=EA=B8=B0=EC=99=95=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=A0=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/week6/BOJ2776/BOJ2776_V1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/week6/BOJ2776/BOJ2776_V1.cpp b/src/week6/BOJ2776/BOJ2776_V1.cpp index ceae9c0..431d503 100644 --- a/src/week6/BOJ2776/BOJ2776_V1.cpp +++ b/src/week6/BOJ2776/BOJ2776_V1.cpp @@ -28,7 +28,7 @@ int main() { } for (int i=0; i