結果
問題 | No.216 FAC |
ユーザー |
![]() |
提出日時 | 2015-07-28 11:59:33 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 1,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 124 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-15 00:40:22 |
合計ジャッジ時間 | 3,423 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i scores = gets.split.map(&:to_i) accepts = gets.split.map(&:to_i) result = Hash.new(0) n.times do |i| player = accepts[i] score = scores[i] result[player] += score end score = result[0] max = result.values.max puts score < max ? "NO" : "YES"