제출 #154043

#제출 시각아이디문제언어결과실행 시간메모리
154043jvalsortavGeppetto (COCI15_geppetto)C++14
0 / 80
162 ms65540 KiB
#include <cstdio> #include <cstdlib> #include <cmath> #include <iostream> #include <cctype> #include <ctime> #include <set> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <utility> #include <string> #include <map> using namespace std; int n, b, x, y, m, l; vector <int> v; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> n; l = (1<<n); b = l; /*cout << s.size();*/ cin >> m; for (int i = 0; i < m; i++){ cin >> x >> y; for (int i = 0; i < l; i++){ if (i&(1<<(x-1)) and i&(1<<(y-1))){ /*cout << i << endl;*/ v.push_back(i); } } } cout << l - v.size(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...