結果
| 問題 | 
                            No.216 FAC
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-07-18 18:13:17 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 271 bytes | 
| コンパイル時間 | 217 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-10-08 10:56:08 | 
| 合計ジャッジ時間 | 3,378 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 16 WA * 8 | 
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - count Syntax OK
ソースコード
correct, mistake, count = 0, 0, gets.chomp.to_i
score = gets.chomp.split(" ").map(&:to_i)
solution = gets.chomp.split(" ").map(&:to_i)
for i in 0..score.length - 1 do
	solution[i] == 0 ? correct += score[i] : mistake += score[i]
end
puts correct >= mistake ? "YES" : "NO"