728x90
반응형
단순 사칙연산 문제이다.
for _ in range(int(input())):
c, v = map(int, input().split())
print(f"You get {c//v} piece(s) and your dad gets {c%v} piece(s).")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 8714번 Monety(python) (0) | 2021.02.19 |
---|---|
백준 알고리즘 10103번 주사위 게임(python) (0) | 2021.02.19 |
백준 알고리즘 10214번 Baseball(python) (0) | 2021.02.19 |
백준 알고리즘 10262번 주사위 게임(python) (0) | 2021.02.19 |
백준 알고리즘 10270번 Algebraic Teamwork(python) (0) | 2021.02.19 |