結果
| 問題 | 
                            No.82 市松模様
                             | 
                    
| コンテスト | |
| ユーザー | 
                             あかりき
                         | 
                    
| 提出日時 | 2021-02-08 07:31:53 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 42 ms / 5,000 ms | 
| コード長 | 226 bytes | 
| コンパイル時間 | 138 ms | 
| コンパイル使用メモリ | 82,388 KB | 
| 実行使用メモリ | 59,524 KB | 
| 最終ジャッジ日時 | 2024-07-05 03:12:35 | 
| 合計ジャッジ時間 | 1,054 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
w,h,c=input().split()
w=int(w)
h=int(h)
for i in range(h):
  l=[]
  for j in range(w):
    if (j+i)%2==0:
      l.append(c)
    else:
      if c=='B':
        l.append('W')
      else:
        l.append('B')
  print(''.join(l))
            
            
            
        
            
あかりき