cf/mirror

Maximum Sum of Products

CF
1519D1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
2 3 2 1 3
1 3 2 4 2
Output
29
Sample 2of 3
Input
2
13 37
2 4
Output
174
Sample 3of 3
Input
6
1 8 7 6 3 6
5 9 6 8 8 6
Output
235
1519D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)