結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-17 09:02:52 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 81,152 KB |
| 最終ジャッジ日時 | 2026-07-17 19:08:58 |
| 合計ジャッジ時間 | 3,235 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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