NC21631. a+b+c+d=?
描述
输入描述
There are several cases.
In the first line, there is a single integer T.(T <= 200)
In the next T lines, each line contains four integers a, b, c and d(-2^61 <= a,b,c,d <=2^61)
输出描述
output T lines.
Each line output one integer represent the answer of a + b + c + d
示例1
输入:
1 1 2 3 4
输出:
10
Python(2.7.3) 解法, 执行用时: 12ms, 内存消耗: 2808K, 提交时间: 2019-01-06 12:32:31
a=input() while(a): a=a-1 b,c,d,e= map(int, raw_input().split()) print b+c+d+e
Python3(3.5.2) 解法, 执行用时: 26ms, 内存消耗: 3320K, 提交时间: 2019-01-07 14:09:38
for i in range(int(input())):print(sum(map(int, input().split(' '))))