結果
問題 | No.82 市松模様 |
ユーザー | nari11111 |
提出日時 | 2014-12-02 23:41:54 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 457 bytes |
コンパイル時間 | 64 ms |
コンパイル使用メモリ | 6,704 KB |
実行使用メモリ | 6,064 KB |
最終ジャッジ日時 | 2023-09-02 01:09:56 |
合計ジャッジ時間 | 913 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 12 ms
5,940 KB |
testcase_01 | AC | 12 ms
5,864 KB |
testcase_02 | AC | 11 ms
5,876 KB |
testcase_03 | AC | 11 ms
6,012 KB |
testcase_04 | AC | 11 ms
5,948 KB |
testcase_05 | AC | 11 ms
5,968 KB |
testcase_06 | AC | 11 ms
5,956 KB |
testcase_07 | AC | 11 ms
5,880 KB |
testcase_08 | AC | 11 ms
6,064 KB |
testcase_09 | AC | 12 ms
5,936 KB |
ソースコード
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 row else: for h in xrange(H): row="" for w in xrange(W): if (h+w)%2==0: row+= "W" else: row+= "B" print row