-->
当前位置:首页 > 题库

PROGRAMMING:Sum is two numbers of a certain value

Luz5年前 (2021-05-10)题库406
There is an integer array l with n elements. Please find out the two unequal elements in the array and s, and output the two numbers from small to large. If there are multiple pairs of numbers meeting the requirements, output the first pair. If there are no pairs meeting the conditions, output not found.
####Input format:
The input is a group of integers. The first line is the integer n (0 < n < = 100), which is the number of array elements.
The second line is n integers, which are n elements of the array.
The third line is s, which is the sum value specified in the title.
####Output format:
If there is a number pair satisfying the condition, please output the first pair of integers (in the order of before and after the array), otherwise output "not found".
####Input sample 1
```in
five
7 5 2 10 4
nine
```
####Output sample 1
```out
2 7
```
####Input sample 2
```in
eight
2 3 5 7 10 13 20 25
forty-three
```
####Output sample 2
```out
Not found
```
####Input sample 3
```in
eight
12 13 15 17 10 13 10 25
twenty
```
####Output sample 3
```out
Not found
```






answer:If there is no answer, please comment