I. Ready Player Juan
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
1
3
4 9 6
1 3 5
Output
17