結果

問題 No.216 FAC
ユーザー rf141rf141
提出日時 2015-07-04 00:00:58
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 6,476 KB
実行使用メモリ 6,048 KB
最終ジャッジ日時 2023-09-22 05:59:10
合計ジャッジ時間 2,090 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,952 KB
testcase_01 AC 12 ms
5,924 KB
testcase_02 AC 12 ms
5,900 KB
testcase_03 AC 12 ms
5,932 KB
testcase_04 AC 12 ms
5,928 KB
testcase_05 AC 12 ms
5,960 KB
testcase_06 AC 14 ms
5,904 KB
testcase_07 AC 11 ms
5,896 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 12 ms
5,932 KB
testcase_12 WA -
testcase_13 AC 11 ms
5,820 KB
testcase_14 WA -
testcase_15 AC 12 ms
5,820 KB
testcase_16 AC 12 ms
5,824 KB
testcase_17 AC 13 ms
5,896 KB
testcase_18 WA -
testcase_19 AC 13 ms
6,028 KB
testcase_20 WA -
testcase_21 AC 12 ms
5,996 KB
testcase_22 AC 12 ms
5,884 KB
testcase_23 AC 12 ms
5,840 KB
testcase_24 WA -
testcase_25 AC 12 ms
5,964 KB
testcase_26 AC 12 ms
5,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(raw_input())
a=map(int,raw_input().split())
b=map(int,raw_input().split())
no=0
yes=0
for i in range(0,n):
    if b[i] != 0:
        no+=a[i]
    else:
        yes+=a[i]
if yes>=no:
    print("YES")
else:
    print("NO")
0