I. 121. We are given some positive integers a1,...,ak and an integer s. Write a program to decide whether the number s can be represented using the numbers ai (each of them exactly once), the four basic operations and some parentheses.
If there is a solution, print one, otherwise display ``No solution''.
The program should read from the keyboard (standard input). The first line contains the value of k (k6), the next k lines contain the numbers ai, while the (k+2)th line contains the prescribed result s.
The source code of the program (i121.pas, i121.cpp, ...) should be submitted.
Deadline expired on 15 February 2006.