結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-17 09:02:52 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 77,756 KB |
| 最終ジャッジ日時 | 2025-12-03 16:16:00 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 8 |
ソースコード
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"
togatoga