EasyRating 1000
Two Sum in a Sorted List
The list is sorted. Print the 1-based positions of the two numbers that add up to the target (exactly one answer).
Input
n target, then n integers.
Output
Two positions.
Sample 1
Input
4 9 2 7 11 15
Output
1 2
Sample 2
Input
3 6 2 3 4
Output
1 3
Output appears here