結果
問題 |
No.455 冬の大三角
|
ユーザー |
|
提出日時 | 2016-12-06 00:11:07 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 71 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-27 22:03:51 |
合計ジャッジ時間 | 7,737 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 WA * 8 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - h Syntax OK
ソースコード
h,w = gets.split.map(&:to_i) starflg = true while cin=gets if starflg && cin=~/(-*)\*/ x = $1.size if x == w-1 cin[x-1] = '*' else cin[x+1] = '*' end starflg = false end puts cin end