結果

問題 No.82 市松模様
ユーザー a2011404a2011404
提出日時 2017-03-15 15:58:18
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 951 ms
コンパイル使用メモリ 23,476 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-17 01:52:51
合計ジャッジ時間 1,625 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>


int main(void){
	int i,j,w,h;
	char c;

	scanf("%d %d %c",&w,&h,&c);

	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			if((i+j)%2==1)	printf("%c",c);
			else		printf("%c",(c=='B'?'W':'B'));
		}
	printf("\n");
	}
	return 0;
}
0