Saleh127

Untitled

Apr 8th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. //freopen("input.txt","r",stdin);
  6. //freopen("output.txt","w",stdout);
  7. int t,n,w,m,a,b,c,d,e,f,i,j,k,l,bt;
  8. cin>>t;
  9. while(t--)
  10. {
  11. cin>>n>>m;
  12. for(i=0;i<n;i++)
  13. {
  14. for(j=0;j<m;j++)
  15. {
  16. if(i==0 && j==0)
  17. printf("W");
  18. else
  19. printf("B");
  20. }
  21. printf("\n");
  22. }
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment