// CERC 2012 // Problem A: Kingdoms // Bad solution -- brute-force O(n*n!) // Author: Arkadiusz Pawlik #include using namespace std; const int N = 20; int n, d[N][N], sum[N]; bool v[1<