Product
면접 대비시간 제한1초메모리 제한256 MB
정수 N개가 주어질 때, 나머지 모든 수의 곱과 같은 수가 있는지 찾고 그 수를 출력한다.
문제
Given a list of numbers, determine whether one of these numbers equals the product of all the other numbers.
입력
The first line of the input file contains a single integer --- the number of elements in the initial list (). The next line contains space-separated numbers constituting the list. Each of these numbers is an integer not greater than in absolute value.
출력
In the first line of the output file, print Yes or No, depending on whether some number from the list is equal to the product of all the other numbers --- or not. If the answer is Yes, in the second line, print such a number. If several numbers satisfy the conditions of the problem, print any of them.