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