結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-13 12:16:03 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 5,000 ms |
| コード長 | 401 bytes |
| 記録 | |
| コンパイル時間 | 747 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-05-22 17:58:34 |
| 合計ジャッジ時間 | 2,758 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
args = input().split()
W, H = int(args[0]), int(args[1])
C = args[2]
for i in range(H):
for j in range(W):
if C == 'B':
if (i + j) % 2 == 0:
print('B', end='')
else:
print('W', end='')
else:
if (i + j) % 2 == 0:
print('W', end='')
else:
print('B', end='')
print()