結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2017-11-06 23:09:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-24 04:09:51 |
合計ジャッジ時間 | 962 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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]))