結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2014-12-02 23:38:06 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 421 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-06-11 07:44:57 |
合計ジャッジ時間 | 786 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 5 |
ソースコード
W, H, C = raw_input().split()W, H = int(W), int(H)if C=="B":for h in xrange(H):for w in xrange(W):if (h+w)%2==0:print "B",else:print "W",else:for h in xrange(H):for w in xrange(W):if (h+w)%2==0:print "W",else:print "B",