結果
| 問題 |
No.82 市松模様
|
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-19 12:15:54 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 5,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-07-18 10:28:51 |
| 合計ジャッジ時間 | 655 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
import sys
W,H,C = raw_input().split()
W = int(W)
H = int(H)
D = ""
if (C == 'B'):
D = 'W'
else:
D = 'B'
for i in range(H):
for j in range(W):
if ((i + j) % 2 == 0):
sys.stdout.write(C)
else:
sys.stdout.write(D)
print
togatoga