結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2015-10-11 19:12:34 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 85 ms / 1,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 37 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-10-15 00:42:35 |
合計ジャッジ時間 | 3,065 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_ia = gets.chomp.split(" ").map(&:to_i)b = gets.chomp.split(" ").map(&:to_i)score = Array.new(101,0)b.each_index{|i|score[b[i]] += a[i]}if score[0] == score.maxputs "YES"elseputs "NO"end