#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000001 int N,M,K; vector> d; bool check(vector t){ int n = t.size(); vector dp(1<(n,Inf)); rep(i,t.size()){ dp[1<>k)&1)continue; dp[i|(1<>N>>M>>K; d.resize(N,vector(N,Inf)); vector> E(N); rep(i,M){ int u,v; cin>>u>>v; u--;v--; d[u][v] = 1; d[v][u] = 1; } rep(i,N)d[i][i] = 0; rep(i,N){ rep(j,N){ rep(k,N){ d[j][k] = min(d[j][k],d[j][i] + d[i][k]); } } } vector cur; for(int i=N-1;i>=0;i--){ auto temp = cur; temp.push_back(i); if(check(temp)){ } else{ temp.pop_back(); } swap(cur,temp); } long long ans = 0LL; rep(i,cur.size()){ ans += (1LL<