結果
| 問題 | No.82 市松模様 |
| コンテスト | |
| ユーザー |
osrgy01
|
| 提出日時 | 2020-12-31 10:01:19 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 17 ms / 5,000 ms |
| + 701µs | |
| コード長 | 258 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,720 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-11-21 01:47:02 |
| 合計ジャッジ時間 | 1,972 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
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