#include using namespace std; #define ll long long #define ul unsigned long long #define pb push_back #define ss second #define ff first #define fr(n) for(int i=0; i=0; i--) #define nl '\n' #define yes cout<<"YES"<>n>>m; bool right=1,left=1; fr(n) { if(!(i&1)) { fr(m) cout<<"#"; cout<> TC; while (TC--) solve(); }