結果

問題 No.216 FAC
ユーザー fagfagdfa
提出日時 2017-08-25 20:00:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-15 15:42:51
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
a = map(int, raw_input().split())
b = map(int, raw_input().split())

score = 0

for i in range(len(a)):
    if b[i] == 0:
        score += a[i]
        a[i] = 9999999

if score >= min(a):
    print "YES"
else:
    print "NO"
0