#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include "bits/stdc++.h" #define REP(i,a,b) for(i=a;i> res_str; if (res_str == "NO") { rep(j, 4) { possible_num[query_num[j]] = false; } } else if (res_str == "YES") { sort(ALL(query_num)); rep(j, 13) { if (count(ALL(query_num),j) == 0) { possible_num[j] = false; dump(j); } } } } rep(i, 13) { if (possible_num[i]) { cout << i << endl; break; } } }