a091: sum of 5 nums
Tags :
Accepted rate : 188人/194人 ( 97% ) [非即時]
評分方式:
Strictly

最近更新 : 2024-05-07 23:18

Content

Given 5 integer numbers, please print the sum of those numbers as the result

Input

a list or numpy array "nums" containing 5 int number

each number < 300

Output

an integer

Sample Input #1
1 2 3 4 5
2 8 10 13 54
Sample Output #1
15
87
測資資訊:
記憶體限制: 64 MB
不公開 測資點#0 (33%): 1.0s , <1K
不公開 測資點#1 (33%): 1.0s , <1K
不公開 測資點#2 (34%): 1.0s , <1K
Hint :

Can use a simple "loop" to sum each element or use "sum"function from numpy(you need to "convert" the python list to numpy array first)

Tags:
出處:
[管理者:
kichan@g.pui... (陳嘉賢CHAN KA IN)
]


ID User Problem Subject Hit Post Date
沒有發現任何「解題報告」