結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
StarMatyan
|
| 提出日時 | 2020-11-24 19:36:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 381 bytes |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-23 18:46:48 |
| 合計ジャッジ時間 | 920 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
strinter = input()
strs = strinter.split(" ")
w_len= int(strs[0])
h_len= int(strs[1])
coler_s =strs[2]
data= ""
counter=1
for hei_t in range(h_len):
for wei_t in range(w_len):
if counter%2 ==1:
data=data + coler_s
else:
if coler_s == "W":
data=data + "B"
else:
data=data + "W"
counter=counter+1
data=""
if w_len%2 == 0:
counter=counter+1
print(data)
StarMatyan