Starter Template
WARNING
bits/stdc++.h
should NEVER used in production codes. It will include many headers in STL.
cpp
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
for (int lt = 1; lt <= T; ++lt) {
// TODO
}
return 0;
}