Notice
Recent Posts
Recent Comments
Link
관리 메뉴

윤일무이

[백준-Python] 7891번: Can you add this? 본문

🥧 Python/⚙️ 코딩테스트

[백준-Python] 7891번: Can you add this?

썸머몽 2023. 3. 8. 14:21
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