結果

問題 No.231 めぐるはめぐる (1)
ユーザー maimai
提出日時 2016-05-13 17:10:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 14,848 KB
最終ジャッジ日時 2024-04-15 15:30:40
合計ジャッジ時間 3,638 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 99 ms
12,032 KB
testcase_02 AC 100 ms
12,032 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 99 ms
12,544 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 92 ms
12,288 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i

stage=[]

n.times{|i|
    g,d=gets.split(" ").map!(&:to_i)
    stage+=[[g-30000*d,i]]
}
stage.sort!{|l,r| r[0]<=>l[0]}

if (stage[0][0]*6<30000*100)
    puts "NO"
else
    puts "YES"
    6.times{puts stage[0][1]}
end
0