結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-28 16:29:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 384 bytes |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-05 20:31:11 |
| 合計ジャッジ時間 | 1,095 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
def main():
W, H, C = input().split()
W = int(W)
H = int(H)
another_C = "W" if C == "B" else "B"
for h in range(H):
row = ""
for w in range(W):
match (w+h) % 2:
case 0:
row += C
case 1:
row += another_C
print(row)
if __name__ == "__main__":
main()