結果
| 問題 | 
                            No.82 市松模様
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nmnmnmnmnmnmnm
                         | 
                    
| 提出日時 | 2014-11-26 21:14:49 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 884 bytes | 
| コンパイル時間 | 849 ms | 
| コンパイル使用メモリ | 89,328 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2025-01-03 09:07:30 | 
| 合計ジャッジ時間 | 1,605 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
 
using namespace std;
 
#define sz size()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(c) (c).begin(), (c).end()
#define rep(i,a,b) for(int i=(a);i<(b);++i)
#define clr(a, b) memset((a), (b) ,sizeof(a))
 
#define MOD 1000000009
 
int main(){
  int w,h;
  char c;
  cin>>w>>h>>c;
  int flag = 0;
  char t[2]={'B','W'};
  if(c=='W')swap(t[0],t[1]);
  rep(y,0,h){
    rep(x,0,w){
      cout << t[(x+y)%2];
    }
    cout << endl;
  }
  return 0;
}
            
            
            
        
            
nmnmnmnmnmnmnm