結果
問題 | No.82 市松模様 |
ユーザー | notsix4 |
提出日時 | 2021-11-25 21:05:36 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 10,660 KB |
実行使用メモリ | 7,940 KB |
最終ジャッジ日時 | 2023-09-10 23:03:48 |
合計ジャッジ時間 | 1,088 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 16 ms
7,932 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
w,h,c=input().split() if c=="B": d="BC" e="C" f="CB" else: d="CB" e="B" f="BC" 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(t) else: for i in range(q): print(s) print(t)