Question
One Alarm Robbery
There are
Input
First line: KaTeX can only parse string typed expression.
Second line: house values.
Third line: binary alarm flags.
Output
Print the maximum obtainable money.
Example
Input:
6
5 1 8 4 10 3
0 1 0 1 0 0Output:23