时间:2022-10-06 11:58:23 | 栏目:Python代码 | 点击:次
求和
try: while True: n=input() s=1 for x in raw_input().split(): s=s+int(x) print s except EOFError: exit()
求乘
try: while True: n=input() s=1 for x in raw_input().split(): s=s*int(x) print s except EOFError: exit()