結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2021-09-04 06:36:15 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 416 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-16 09:31:05 |
合計ジャッジ時間 | 2,351 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(a) tmp1=0 for i in range(n): if b[i]==0:tmp1+=a[i] tmp2=sum_a-tmp1 print(["NO","YES"][tmp1>=tmp2])