結果
| 問題 | No.455 冬の大三角 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-06 00:11:07 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 264 bytes |
| 記録 | |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-22 02:38:12 |
| 合計ジャッジ時間 | 5,465 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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