結果

問題 No.216 FAC
コンテスト
ユーザー fagfagdfa
提出日時 2017-08-25 20:00:02
言語 PyPy2
(7.3.20)
結果
WA  
実行時間 -
コード長 236 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 146 ms
コンパイル使用メモリ 77,180 KB
最終ジャッジ日時 2025-12-04 00:34:34
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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