結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2023-11-18 23:17:38 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 342 ms |
コンパイル使用メモリ | 82,164 KB |
実行使用メモリ | 53,604 KB |
最終ジャッジ日時 | 2024-09-26 05:59:39 |
合計ジャッジ時間 | 2,298 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 8 |
ソースコード
n = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) res = 0 Kres = 0 for i in range(n): if B[i] == 0: Kres += A[i] else: res += A[i] if Kres >= res: print("YES") else: print("NO")