結果
| 問題 | 
                            No.82 市松模様
                             | 
                    
| コンテスト | |
| ユーザー | 
                             horiesiniti
                         | 
                    
| 提出日時 | 2016-06-06 12:13:34 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 88 ms / 5,000 ms | 
| コード長 | 189 bytes | 
| コンパイル時間 | 136 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-10-08 16:26:14 | 
| 合計ジャッジ時間 | 1,802 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
コンパイルメッセージ
Syntax OK
ソースコード
w,h,c=STDIN.gets.chomp.split(" ")
w=w.to_i
h=h.to_i
if c=="W"
	c=0
else
	c=1
end
h.times do |i|
	w.times do |j|
		p=(i+j+c)%2
		if p==0
			print "W"
		else
			print "B"
		end
	end
	puts
end
            
            
            
        
            
horiesiniti