結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
fagfagdfa
|
| 提出日時 | 2017-08-25 20:02:43 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 77,380 KB |
| 最終ジャッジ日時 | 2025-12-04 00:34:37 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 6 |
ソースコード
n = input()
a = map(int, raw_input().split())
b = map(int, raw_input().split())
score = 0
c = []
for i in range(len(a)):
if b[i] == 0:
score += a[i]
else:
c.append(a[i])
if len(c) == 0:
print "YES"
elif score >= min(c):
print "YES"
else:
print "NO"
fagfagdfa