結果
問題 | No.82 市松模様 |
ユーザー |
![]() |
提出日時 | 2020-01-01 11:40:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 515 ms / 5,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 44,072 KB |
最終ジャッジ日時 | 2024-11-21 21:59:12 |
合計ジャッジ時間 | 8,159 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
import sysread = sys.stdin.buffer.readreadline = sys.stdin.buffer.readlinereadlines = sys.stdin.buffer.readlinesimport numpy as npW,H,C = read().split()W,H = map(int,(W,H))A = np.empty((H,W),'U1')if C == b'B':x,y = 'BW'else:x,y = 'WB'A[::2,::2] = xA[1::2,1::2] = xA[1::2,::2] = yA[::2,1::2] = yprint('\n'.join(''.join(row) for row in A.astype(str)))