結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
harhogefoo
|
| 提出日時 | 2016-10-13 08:09:56 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 54 ms / 1,000 ms |
| + 835µs | |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 10 ms |
| コンパイル使用メモリ | 8,576 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2026-09-27 22:55:28 |
| 合計ジャッジ時間 | 1,794 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i
death = 30000
need = death * 100
dungeon = Hash.new(0)
n.times do |i|
gain, death_count = gets.chomp.split(" ").map(&:to_i)
dungeon[i+1] = gain - death * death_count
end
max = dungeon.max_by {|_, v| v}
if need <= max[1] * 6
puts "YES"
else
puts "NO"
exit
end
6.times do
puts max[0]
end
harhogefoo