結果

問題 No.216 FAC
ユーザー rikiyarikiya
提出日時 2017-07-18 18:13:16
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-17 01:58:36
合計ジャッジ時間 3,624 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
12,160 KB
testcase_01 AC 92 ms
12,032 KB
testcase_02 AC 92 ms
12,032 KB
testcase_03 AC 92 ms
12,288 KB
testcase_04 AC 93 ms
12,160 KB
testcase_05 AC 97 ms
12,288 KB
testcase_06 AC 91 ms
12,160 KB
testcase_07 AC 90 ms
12,160 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 95 ms
12,160 KB
testcase_12 WA -
testcase_13 AC 94 ms
12,160 KB
testcase_14 WA -
testcase_15 AC 94 ms
12,032 KB
testcase_16 AC 93 ms
12,032 KB
testcase_17 AC 93 ms
12,288 KB
testcase_18 WA -
testcase_19 AC 96 ms
11,904 KB
testcase_20 WA -
testcase_21 AC 92 ms
12,160 KB
testcase_22 AC 94 ms
12,032 KB
testcase_23 AC 97 ms
12,160 KB
testcase_24 WA -
testcase_25 AC 93 ms
12,160 KB
testcase_26 AC 95 ms
12,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - count
Syntax OK

ソースコード

diff #

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"
0