結果
問題 |
No.82 市松模様
|
ユーザー |
![]() |
提出日時 | 2018-01-31 11:30:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 5,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-29 23:43:03 |
合計ジャッジ時間 | 1,338 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
W, H, C = input().split() W = int(W) H = int(H) if (C == 'B'): flag = 0 FLAG = 0 else: flag = 1 FLAG = 1 ichimatsu = [] for h in range(H): ichimatsu.append([]) for w in range(W): if (flag == 0): ichimatsu[h].append('B') flag = 1 else: ichimatsu[h].append('W') flag = 0 if (FLAG == 0): FLAG = 1 flag = 1 else: FLAG = 0 flag = 0 for h in range(H): print(''.join(ichimatsu[h]))