#P91. sum of 5 nums

sum of 5 nums

題目描述

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

輸入格式

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

each number < 300

輸出格式

an integer

Samples

["1 2 3 4 5","2 8 10 13 54"]
["15","87"]

提示

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)

原始資料

  • Zero1 題號:a091
  • Hydro 題號:Z0091
  • Locale:zh_TW
  • Display:open