結果

問題 No.82 市松模様
ユーザー LeonardoneLeonardone
提出日時 2015-10-14 18:09:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 11,548 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-09-28 13:07:56
合計ジャッジ時間 1,769 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,156 KB
testcase_01 AC 84 ms
15,132 KB
testcase_02 AC 85 ms
15,348 KB
testcase_03 AC 85 ms
15,116 KB
testcase_04 AC 87 ms
15,140 KB
testcase_05 AC 86 ms
15,020 KB
testcase_06 AC 85 ms
15,116 KB
testcase_07 AC 83 ms
15,136 KB
testcase_08 AC 83 ms
15,128 KB
testcase_09 AC 85 ms
15,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#! ruby
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

W, H, C = gets.chomp.split

m = 'WBW'[/#{C}./]

H.to_i.times do
	puts (m*(W.to_i*2))[0...W.to_i]
	m.reverse!
end
0