C++ contest starter
Fast I/O, test cases, and a clean solve function.
cp#include <bits/stdc++.h>
using namespace std;
void solve() {
${1:// solution}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t = 1;
${2:cin >> t;}
while (t--) solve();
return 0;
}