結果

問題 No.216 FAC
ユーザー maimai
提出日時 2016-05-26 22:09:02
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 165 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-16 17:40:26
合計ジャッジ時間 3,744 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
12,288 KB
testcase_01 AC 89 ms
12,160 KB
testcase_02 AC 90 ms
12,032 KB
testcase_03 AC 88 ms
12,160 KB
testcase_04 AC 91 ms
12,160 KB
testcase_05 AC 90 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 90 ms
12,032 KB
testcase_12 WA -
testcase_13 AC 90 ms
12,032 KB
testcase_14 WA -
testcase_15 AC 89 ms
12,288 KB
testcase_16 AC 88 ms
12,032 KB
testcase_17 AC 90 ms
12,288 KB
testcase_18 WA -
testcase_19 AC 87 ms
12,032 KB
testcase_20 WA -
testcase_21 AC 90 ms
12,032 KB
testcase_22 AC 89 ms
12,288 KB
testcase_23 AC 90 ms
12,288 KB
testcase_24 WA -
testcase_25 AC 90 ms
12,032 KB
testcase_26 AC 90 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
s=gets.split(" ").map(&:to_i)
k=y=0
gets.split(" ").each{|e|
    t=s.shift()
    if e=="0"
        k+=t
    else
        y+=t
    end
}
puts k<y ? "NO" : "YES"
0