https://codeforces.com/problemset/problem/1333/A
WBB…
BB…
…
只要第一个是W其它都是B即可
B的好的有2个 W的好的有1个
#include<bits/stdc++.h>
using namespace std;
int main(void)
{
int t; cin>>t;
while(t--)
{
int n,m; cin>>n>>m;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
if(i==1&&j==1) cout<<"W";
else cout<<"B";
}
cout<<endl;
}
}
return 0;
}