結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-03 08:18:06 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 70 ms / 5,000 ms |
| + 211µs | |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 95,860 KB |
| 実行使用メモリ | 83,328 KB |
| 最終ジャッジ日時 | 2026-08-26 07:23:01 |
| 合計ジャッジ時間 | 2,098 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
res = ["W","B"]
s = input().split()
w,h = int(s[0]), int(s[1])
x = s[2]=="B"
for i in range(h):
print("".join(res[(i+j+x)%2] for j in range(w)))
convexineq