結果
| 問題 | No.678 2Dシューティングゲームの必殺ビーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-29 22:18:25 |
| 言語 | Ruby (4.0.1) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 2,000 ms |
| コード長 | 204 bytes |
| 記録 | |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-03-16 05:40:51 |
| 合計ジャッジ時間 | 2,238 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 |
コンパイルメッセージ
Main.rb:13: warning: ambiguous `*` has been interpreted as an argument prefix Syntax OK
ソースコード
n,l,r=gets.split.map &:to_i
z=[0]*n
a=n.times.map{gets.split.map &:to_i}
(l..r).each{|w|
x=[-1,nil]
a.each_with_index{|e,i|
if e[0]<=w&&w<=e[2]
x=[x,[e[3],i]].max
end
}
z[x[1]]=1 if x[1]
}
p *z