結果
問題 |
No.82 市松模様
|
ユーザー |
|
提出日時 | 2023-08-10 19:11:31 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 189 bytes |
コンパイル時間 | 51 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-17 04:02:25 |
合計ジャッジ時間 | 1,626 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
H.to_i.times do |i| case C when "B" then str = (i + 1).odd?? "BW": "WB" when "W" then str = (i + 1).odd?? "WB": "BW" end puts (str * width)[0, width] end