공부/코딩테스트
백준: 7891번 Can you add this? (Python3)
혼밥맨
2022. 8. 3. 23:44
반응형
백준: 7891번 Can you add this? (Python3)
Can you add this? 성공다국어
시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 | 128 MB | 1225 | 1052 | 994 | 86.661% |
문제
Given two integers, calculate and output their sum.
입력
The input contains several test cases. The first line contains and integer t (t ≤ 100) denoting the number of test cases. Then t tests follow, each of them consisiting of two space separated integers x and y (−109 ≤ x, y ≤ 109).
출력
For each test case output output the sum of the corresponding integers.
예제 입력 1
4
-100 100
2 3
0 110101
-1000000000 1
예제 출력 1
0
5
110101
-999999999
답안
1
2
|
for i in range(int(input())):
print(sum(map(int, input().split())))
|
cs |
반응형