結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2024-04-25 21:42:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-08 09:43:06 |
合計ジャッジ時間 | 1,840 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) sum_a, sum_b = 0, 0 for x, y in zip(a, b): if y == 0: sum_a += x else: sum_b += x print("YES" if sum_a >= sum_b else "NO")