結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-01-29 18:57:57 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 90 ms / 1,000 ms |
| コード長 | 199 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-09-16 01:55:27 |
| 合計ジャッジ時間 | 3,641 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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