結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 14:38:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 5,000 ms |
| コード長 | 463 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,324 KB |
| 実行使用メモリ | 59,008 KB |
| 最終ジャッジ日時 | 2024-09-26 03:36:46 |
| 合計ジャッジ時間 | 1,191 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
W,H,C = map(str,input().split())
p = ["B","W"]
if C=="B":
for i in range(int(H)):
temp=""
for j in range(int(W)):
if i%2==0:
temp+=p[j%2]
else:
temp+=p[(j+1)%2]
print(temp)
else:
for i in range(int(H)):
temp=""
for j in range(int(W)):
if i%2==0:
temp+=p[(j+1)%2]
else:
temp+=p[j%2]
print(temp)
もぐら 3.0