Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 | 31 |
Tags
- 편스토랑 우승상품
- Docker
- gs25
- Baekjoon
- PYTHON
- 프로그래머스
- github
- 자연어처리
- 코로나19
- 더현대서울 맛집
- leetcode
- dacon
- 캐치카페
- 맥북
- Git
- 편스토랑
- 데이콘
- 금융문자분석경진대회
- 백준
- 프로그래머스 파이썬
- 우분투
- hackerrank
- Real or Not? NLP with Disaster Tweets
- 파이썬
- SW Expert Academy
- AI 경진대회
- ubuntu
- programmers
- ChatGPT
- Kaggle
Archives
- Today
- Total
솜씨좋은장씨
[SW Expert Academy] 2029번 : 몫과 나머지 출력하기 (Python) 본문
728x90
반응형
코딩 1일 1문제! 오늘의 문제는 SW Expert Academy의 몫과 나머지 출력하기 입니다.
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
👨🏻💻 코드 ( Solution )
def quotient_remainder(num1, num2):
quotient = num1 // num2
remainder = num1 % num2
return f"{quotient} {remainder}"
if __name__ == "__main__":
for idx in range(int(input())):
num1, num2 = map(int, input().split())
print(f"#{idx+1} {quotient_remainder(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
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 11659번 : 구간 합 구하기 4 (Python) (0) | 2021.12.03 |
---|---|
[BaekJoon] 10952번 : A+B - 5 (Python) (0) | 2021.12.02 |
[SW Expert Academy] 1976번 : 시각 덧셈 (Python) (0) | 2021.11.30 |
[SW Expert Academy] 1966번 : 숫자를 정렬하자 (Python) (1) | 2021.11.29 |
[SW Expert Academy] 4406번 : 모음이 보이지 않는 사람 (Python) (0) | 2021.11.28 |
Comments