結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2023-05-28 20:52:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 56 ms / 5,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 310 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 62,848 KB |
最終ジャッジ日時 | 2024-12-27 18:33:52 |
合計ジャッジ時間 | 1,577 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
w,h,c = input().split()if c =='W':d='B'else:d='W'for i in range(int(h)):for j in range(int(w)):if (i + j)%2 == 0:print(c,end='')else:print(d,end='')print('')