結果
問題 | No.82 市松模様 |
ユーザー |
|
提出日時 | 2020-08-27 16:35:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 5,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 82,264 KB |
実行使用メモリ | 63,104 KB |
最終ジャッジ日時 | 2024-11-07 20:30:38 |
合計ジャッジ時間 | 1,215 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
W, H, C = input().split()if C == 'B':D = 'W'else:D = 'B'for i in range(int(H)):for j in range(int(W)):if (i + j) % 2:print(D, end='')else:print(C, end='')print()