結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-01-29 18:57:57 |
| 言語 | Ruby (4.0.6 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 51 ms / 1,000 ms |
| + 515µs | |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 14,464 KB |
| 最終ジャッジ日時 | 2026-08-28 09:43:18 |
| 合計ジャッジ時間 | 3,147 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.to_i a = gets.chomp.split.map(&:to_i) b = gets.chomp.split.map(&:to_i) scores = [0]*101 n.times do |i| scores[b[i]] += a[i] end max = scores.max puts scores[0] >= max ? 'YES' : 'NO'
wonda_t_coffee