관리 메뉴

솜씨좋은장씨

[BaekJoon] 7891번 : Can you add this? (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 7891번 : Can you add this? (Python)

솜씨좋은장씨 2022. 8. 9. 06:47
728x90
반응형

def can_you_add_this(num1, num2):
    return num1 + num2


if __name__ == "__main__":
    for _ in range(int(input())):
        num1, num2 = map(int, input().split())
        
        print(can_you_add_this(num1, num2))

코딩 1일 1문제! 오늘의 문제는 백준의 Can you add this? 입니다.

 

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

👨🏻‍💻 코드 ( Solution )

def can_you_add_this(num1, num2):
    return num1 + num2


if __name__ == "__main__":
    for _ in range(int(input())):
        num1, num2 = map(int, input().split())
        
        print(can_you_add_this(num1, num2))

 

 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

728x90
반응형
0 Comments
댓글쓰기 폼