#include<iostream> using namespace std; int main() { int cases; int k; cin>>cases; while(cases--) { int y,n; ...