250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- pcce 기출문제
- html
- 백준
- 아이엠어바텐더
- 데이터
- GIT
- 슬라이싱
- where
- Python3
- map
- 프로그래머스
- List Comprehension
- ORDER BY
- python
- Len
- 코딩테스트 연습
- 설계
- Join
- 파이썬 몫
- 프로젝트
- 파이썬
- 단어 공부
- 파이썬 슬라이싱
- YOLOv5
- SQL 고득점 Kit
- css
- count
- date_format
- Django
- sql
Archives
- Today
- Total
nan + nan = 2nan
[백준] [Python3] #11021. A + B - 7 본문
728x90
코드 입력
T = int(input())
for i in range(1, T + 1):
A, B = map(int, input().split())
print('Case #%s: %s' % (i, A+B))
앞서 배웠던 것들의 활용판이라고 볼 수 있다.
for 문, map을 이용한 함수, formatting을 통해 변수를 출력하는 기법.
출처 : 백준 Online Judge
https://www.acmicpc.net/problem/11021
'Python > 백준 알고리즘' 카테고리의 다른 글
[백준] [Python3] #2438. 별 찍기 - 1 (0) | 2021.08.03 |
---|---|
[백준] [Python3] #11022. A+B - 8 (0) | 2021.08.03 |
[백준] [Python3] #2742. 기찍 N (0) | 2021.08.03 |
[백준] [Python3] #2741. N 찍기 (0) | 2021.08.03 |
[백준] [Python3] #15552. 빠른 A + B (0) | 2021.08.03 |
Comments