관리 메뉴

솜씨좋은장씨

[BaekJoon] 18398번 : HOMWRK (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 18398번 : HOMWRK (Python)

솜씨좋은장씨 2022. 11. 28. 12:19
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 HOMWRK 입니다.

 

18398번: HOMWRK

In one of the beautiful cities of Afghanistan two sisters are going to program a simple game to help them solve their mathematics homework. Their homework asks them to calculate the sum and multiplication of two numbers. Your task is to help them to build

www.acmicpc.net

🧑🏻‍💻 코드 ( Solution )

def homwrk(A, B):
    return f"{A+B} {A*B}"


if __name__ == "__main__":
    T = int(input())
    for _ in range(T):
        N = int(input())

        for _ in range(N):
            A, B = map(int, input().split())
            
            print(homwrk(A=A, B=B))
 

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

Comments