diff --git a/src/week6/BOJ2776/BOJ2776_V1.cpp b/src/week6/BOJ2776/BOJ2776_V1.cpp new file mode 100644 index 0000000..431d503 --- /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