結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-26 16:54:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 518 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-29 13:09:40 |
| 合計ジャッジ時間 | 1,145 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
w,h,c=input().split()
if c=="B":
d="BW"
e="W"
f="WB"
else:
d="WB"
e="B"
f="BW"
w=int(w)
h=int(h)
a=w%2
b=w//2
if a==1:
s=d*b+c+"\r\n"
t=f*b+e+"\r\n"
else:
s=d*b+"\r\n"
t=f*b+"\r\n"
p=h%2
q=h//2
if p==1:
l=(s+t)*q+s
else:
l=(s+t)*q
print(l)
"""
w,h,c=input().split()
w=int(w)
h=int(h)
q=w*h//2
if c=="B":
d="BW"
else:
d="WB"
s=""
if w*h%2==1:
s=d*q+c
else:
s=d*q
t=""
print(s)
for i in range(0,w*h-w+1,w):
t=t+s[i:i+w]+'\r\n'
print(t)
"""