Level 14

0

0 votes
Medium-Hard
Problem

Sample Testcases Input:
7 12 43 1 21 13 56 37
7 1 2 31 431 521 632 7

Sample Testcases Output:
5453
11305

Sample Input
7 12 43 1 21 13 56 37
Sample Output
5453
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?