結果
問題 |
No.82 市松模様
|
ユーザー |
|
提出日時 | 2019-03-31 17:35:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-21 22:37:15 |
合計ジャッジ時間 | 1,098 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 7 |
ソースコード
w,h,c=input().split();f=[0,1][c=='W'] for i in range(int(h)): for j in range(int(w)): if not w%2 and i%2: print(['B','W'][not f%2],end='') else: print(['B','W'][f%2],end='') f+=1 print()