結果

問題 No.82 市松模様
ユーザー Tsuneo YoshiokaTsuneo Yoshioka
提出日時 2014-12-02 23:37:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,328 KB
最終ジャッジ日時 2023-09-02 01:09:33
合計ジャッジ時間 1,530 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,160 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 74 ms
15,236 KB
testcase_04 WA -
testcase_05 AC 75 ms
15,096 KB
testcase_06 WA -
testcase_07 AC 74 ms
15,176 KB
testcase_08 AC 75 ms
15,248 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

W, H, C = gets.split.map(&:to_i)
(0...H).each{|h|
    (0...W).each{|w|
        if (h+w)%2 == 0
            print "B"
        else
            print "W"
        end
    }
    puts
}
0