#include using namespace std; #define send {ios_base::sync_with_stdio(false);} #define help {cin.tie(NULL); cout.tie(NULL);} #define f first #define s second #define getunique(v) {sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end());} typedef long long ll; typedef long double lld; typedef unsigned long long ull; template ostream& operator<<(ostream &cout, vector const &v); template ostream& operator<<(ostream &cout, pair const &p) { return cout << "(" << p.f << ", " << p.s << ")"; } template ostream& operator<<(ostream &cout, vector const &v) { cout << "["; for(int i = 0; i < v.size(); i++) {if (i) cout << ", "; cout << v[i];} return cout << "]"; } template istream& operator>>(istream& cin, pair &p) { cin >> p.first; return cin >> p.second; } mt19937 rng(std::chrono::steady_clock::now().time_since_epoch().count()); void usaco(string filename) { freopen((filename + ".in").c_str(), "r", stdin); freopen((filename + ".out").c_str(), "w", stdout); } const lld pi = 3.14159265358979323846; const ll mod = 1000000007; void solve() { int n; cin >> n; vector v(n); for (int i=0; i> v[i]; } char boards[3][n][n]; for (int x=0; x> send help #ifdef duy_local usaco("duy"); #endif #ifdef duy_local auto end = std::chrono::high_resolution_clock::now(); cout << setprecision(4) << fixed; cout << "Execution time: " << std::chrono::duration_cast>(end - begin).count() << " seconds" << endl; #endif int t; cin >> t; while (t--){ solve(); } }