結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-20 19:37:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-14 17:32:59 |
| 合計ジャッジ時間 | 858 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
def main():
W, H, C = input().split()
w = int(W)
h = int(H)
if C == 'B':
a = 'BW' * 26
else:
a = 'WB' * 26
for i in range(h):
if not i % 2:
print(a[0:w])
else:
print(a[1:w+1])
main()