My dear Watson, I cannot agree with those who rank modesty among the virtues. To the logician all things should be seen exactly as they are, and to underestimate one’s self is as much a departure from truth as to exaggerate one’s own powers.
Watson has one interesting task for Sherlock. Task is as follows:
Given two array of length N. find two indexes i and j (1 <= i <= j <= N) such that s1 is sum of elements between this indexes of first array and s2 is sum of elements between this indexes of second array and sum of square of s1 and s2 is minimum.
Help Sherlock to solve this problem.
Input Format
Output Format
Setter: Umang Upadhyay