結果
問題 | No.82 市松模様 |
ユーザー | notsix4 |
提出日時 | 2021-11-25 22:29:15 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 10,592 KB |
実行使用メモリ | 7,976 KB |
最終ジャッジ日時 | 2023-09-11 00:25:48 |
合計ジャッジ時間 | 1,016 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
w,h,c=input().split() if c=="B": d="BW" e="W" f="WB" else: d="WB" e="B" f="BW" w=int(w) h=int(h) a=w%2 b=w//2 if a==1: s=d*b+c t=f*b+e else: s=d*b t=f*b p=h%2 q=h//2 if p==1: for i in range(q): print(s) print(t) print(s+'\n') else: for i in range(q): print(s) print(t+"\n")