10824번 : 네 수 - Python

Pobi·2023년 1월 30일
0

PS

목록 보기
30/107

문제

https://www.acmicpc.net/problem/10824

풀이

문자열로 입력받은 a, b, c, d를 각각 a+b, c+d로 만든다음 int()로 변환시킨 후 더하면 된다.

코드

from sys import stdin

input = stdin.readline

array = list(input().split())

a = int(array[0]+array[1])
b = int(array[2]+array[3])

print(a+b)
profile
꿈 많은 개발자

0개의 댓글