H. GSS and Simple Math Problem--“今日头条杯”首届湖北省大学程序设计竞赛(网络同步赛)

题目描述:链接点此

这套题的github地址(里面包含了数据,题解,现场排名):点此

题目描述

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

输入描述:

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

输出描述:

Output one line with the answer 
示例1

输入

5
11
12
13
14
15

输出

360360
题目意思:就是给你n个整数,求相乘的大小。

这题python和java很好过,因为py和java有大数,c++就比较难受了

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

c++的后来在补





猜你喜欢

转载自www.cnblogs.com/fantastic123/p/8947493.html