結果
問題 | No.82 市松模様 |
ユーザー |
|
提出日時 | 2020-07-14 17:03:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 158 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-17 17:59:32 |
合計ジャッジ時間 | 1,074 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
W, H, C = input().split()W = int(W)H = int(H)for i in range(H):print(((C + 'WB'['BW'.index(C)]) * sum(divmod(W, 2)))[:W])C = 'WB'['BW'.index(C)]