728x90
7891번: Can you add this?
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).
www.acmicpc.net
📌 풀이
sure i can이다 이 자식아
test case 수가 주어지고 a, b 두 수를 더한 값을 출력하면 된다.
EZ.
✅ 코드
test_case = int(input())
for i in range(test_case) :
a, b = map(int, input().split())
print(a+b)
728x90
'🥧 Python > ⚙️ 코딩테스트' 카테고리의 다른 글
[백준-Python] 9316번: Hello Judge (0) | 2023.03.08 |
---|---|
[백준-Python] 8393번: 합 (0) | 2023.03.08 |
[백준-Python] 6810번: ISBN (0) | 2023.03.08 |
[백준-Python] 6778번: Which Alien? (0) | 2023.03.08 |
[백준-Python] 6749번: Next in line (0) | 2023.03.08 |