#include using namespace std; using ll = long long; using llu = long long unsigned; // メイン関数 int main() { int n; cin >> n; vector s(n); for (int i=0; i> t; sort(t.begin(), t.end()); s[i] = t; } vector isNg(n); for (int i=0; i tmp1, tmp2; for (int k=0; k