結果

問題 No.647 明太子
ユーザー ciel
提出日時 2018-01-30 23:15:30
言語 Ruby
(3.4.1)
結果
AC  
実行時間 934 ms / 4,500 ms
コード長 205 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-06-27 02:27:01
合計ジャッジ時間 6,123 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:10: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

a=gets.to_i.times.map{gets.split.map &:to_i}
b=gets.to_i.times.map{
	x,y=gets.split.map &:to_i
	a.count{|x0,y0|x0>=x&&y0<=y}
}
if b.all?{|e|e==0}
	p 0
else
	m=b.max
	p *(1..b.size).select{|i|b[i-1]==m}
end
0