#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){if(A>B){A=B;return true;}else{return false;}} templateinline bool chmax(T&A,S B){if(A>W>>H>>C; REP(i,H)REP(j,W)cout<<((i+j)%2?(C=='B'?'W':'B'):C)<<(j+1==W?"\n":""); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout<>TE; while(TE--)sol(); }