結果

問題 No.82 市松模様
ユーザー takubokudori
提出日時 2017-08-29 02:46:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 574 bytes
コンパイル時間 613 ms
コンパイル使用メモリ 72,940 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-06 08:43:35
合計ジャッジ時間 1,074 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <sstream>
#include <cstdio>
#include <iterator>

#define N 1000
#define re(i,n) for(int i=0;i<(n);i++)
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define fe(i,n,f) for_each(i,n,f)
using namespace std;

typedef long long ll;

int main(void){
	int a,b;
	char c;
	cin>>a>>b>>c;
	re(i,a){
		re(j,b){
			cout<<c;
			c=(c=='W')?'B':'W';
		}
		c=(c=='W')?'B':'W';
		cout<<endl;
	}
	return 0;
}
0