#Archive
1000. A+B - input 여러개 한번에 받고 싶을 때
Gom Guard
2017. 11. 11. 19:03
반응형
- 백준 알고리즘 : https://www.acmicpc.net/problem
문제
두 수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
입력
첫째 줄에 A와 B가 주어진다. (0 < A,B < 10)
예제 입력
1 2
예제 출력
3
곰가드의 코드
- a,b = map(int,input().split())
- print(a+b)
참고할 파이썬 코드
- 변수1, 변수2 = input().split()
- 변수1, 변수2 = input().split(기준문자)
- 변수1, 변수2 = input(문자열).split()
- 변수1, 변수2 = input(문자열).split(기준문자)
- 변수1, 변수2 = map(int, input().split())
- 변수1, 변수2 = map(int, input().split(기준문자))
- 변수1, 변수2 = map(int, input(문자열).split())
- 변수1, 변수2 = map(int, input(문자열).split(기준문자))
반응형