# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95300 | karlopuh | Geppetto (COCI15_geppetto) | C++14 | 2 ms | 376 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int banned[21][21];
int n,k,komb;
int a,b;
int main(){
cin>>n>>k;
komb=pow(2,n);
if(k!=0)komb--;
for(int i=0;i<k;i++){
cin>>a>>b;
if(banned[a][b]!=1){
banned[a][b]=1;
banned[b][a]=1;
komb--;
}
}
cout<<komb;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |