結果

問題 No.216 FAC
ユーザー togatogatogatoga
提出日時 2015-08-17 09:02:52
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 6,684 KB
実行使用メモリ 6,180 KB
最終ジャッジ日時 2023-09-25 12:33:41
合計ジャッジ時間 1,662 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,952 KB
testcase_01 AC 12 ms
6,072 KB
testcase_02 AC 12 ms
6,112 KB
testcase_03 AC 13 ms
6,016 KB
testcase_04 AC 11 ms
5,992 KB
testcase_05 AC 12 ms
6,032 KB
testcase_06 AC 11 ms
5,948 KB
testcase_07 AC 11 ms
6,116 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 11 ms
6,028 KB
testcase_12 WA -
testcase_13 AC 11 ms
6,124 KB
testcase_14 WA -
testcase_15 AC 11 ms
5,964 KB
testcase_16 AC 11 ms
6,136 KB
testcase_17 AC 11 ms
6,132 KB
testcase_18 WA -
testcase_19 AC 11 ms
6,040 KB
testcase_20 WA -
testcase_21 AC 11 ms
5,952 KB
testcase_22 AC 11 ms
5,996 KB
testcase_23 AC 11 ms
6,000 KB
testcase_24 WA -
testcase_25 AC 11 ms
6,004 KB
testcase_26 AC 11 ms
6,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
a = map(int, raw_input().split())
b = map(int, raw_input().split())
score = 0
other = 0
for i in range(N):
    if (b[i] == 0):
        score += a[i]
    else:
        other += a[i]
if (score >= other):
    print "YES"
else:
    print "NO"
0