結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2020-11-24 19:39:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 5,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 262 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-23 18:46:49 |
合計ジャッジ時間 | 1,069 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 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 print(data) data="" if w_len%2 == 0: counter=counter+1