#include #include #include using namespace std; bool is_kadomatsu(int a, int b, int c){ if(a==b || b==c || c==a) return false; if(ac) return true; if(a>b && b a(n); for(int i=0; i> a[i]; sort(a.begin(), a.end()); do{ bool ok = true; for(int i=2; i