H. GSS and Simple Math Problem--"Today's Toutiao Cup" The First Hubei University Programming Contest (Network Synchronized Contest)

Topic description: link here

The github address of this set of questions (which contains data, question solutions, and on-site rankings): click here

Topic description

Given n positive integers , your task is to calculate the product of these integers, The answer is less than

Enter description:

The first line of input is an integer n, the i-th of the following n lines contains the integer

Output description:

Output one line with the answer 
Example 1

enter

5
11
12
13
14
15

output

360360 
The meaning of the question: It is to give you n integers and find the size of the multiplication.

This question is very easy with python and java, because py and java have large numbers, and c++ is more uncomfortable

n=int(input())
ans=1
for i in range(n):
    b=int(input())
    years =years* b
 print (years)
 
     

C++ will be supplemented later





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324934329&siteId=291194637