# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
659573 | 2022-11-18T15:22:14 Z | beaconmc | Fancy Fence (CEOI20_fancyfence) | C++14 | 0 ms | 0 KB |
n = int(input()) h = list(map(int, input().split())) w = list(map(int, input().split())) sus = sum(w) print(sus*h*(sus+1)*(h+1)*