結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-18 18:13:16 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 271 bytes |
| コンパイル時間 | 422 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-08 10:55:58 |
| 合計ジャッジ時間 | 3,828 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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"