結果

問題 No.82 市松模様
ユーザー yohei-kuyohei-ku
提出日時 2018-03-14 21:43:26
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 6,708 KB
実行使用メモリ 6,004 KB
最終ジャッジ日時 2023-08-19 18:24:27
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,864 KB
testcase_01 AC 10 ms
5,976 KB
testcase_02 AC 10 ms
6,004 KB
testcase_03 AC 11 ms
5,976 KB
testcase_04 AC 10 ms
5,928 KB
testcase_05 AC 11 ms
5,836 KB
testcase_06 AC 10 ms
5,920 KB
testcase_07 AC 10 ms
5,940 KB
testcase_08 AC 11 ms
5,928 KB
testcase_09 AC 11 ms
5,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

first = raw_input()
split_first = first.split()
W = int(split_first[0])
H = int(split_first[1])
C = split_first[2]

if C == "B":
    A = "BW"*50

if C == "W":
    A = "WB"*50
    
for i in range(0,H):
    print A[i:i+W]
0