結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2020-12-31 10:01:19 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 301µs | |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-12 10:16:42 |
| 合計ジャッジ時間 | 1,597 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
w,h,c=input().split()
h,w=int(h),int(w)
C='BW';c_index=C.index(c)
for i in range(h):
s=''
if i%2==0:
c_index=C.index(c)
else:
c_index=1-C.index(c)
for j in range(w):
s+=C[c_index]
c_index=1-c_index
print(s)
osrgy01