結果
問題 | No.82 市松模様 |
ユーザー | rocoder |
提出日時 | 2017-06-15 05:13:43 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 246 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 11,856 KB |
実行使用メモリ | 10,040 KB |
最終ジャッジ日時 | 2023-10-25 05:44:33 |
合計ジャッジ時間 | 956 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
ソースコード
W,H,C=input(). split () W=int(W) H=int(H) if C=="B": D="W" else: D="B" Bo=[[C]*W]*H for i in range (H): for i in range (W): N=i+j if N%2==1: Bo[i][j]=D for i in range (H): print("".join(Bo[i]))