가오리의 코딩일기

[10178] 할로윈의 사탕 본문

Python/백준

[10178] 할로윈의 사탕

류경혜 2022. 6. 12. 16:00

t = int(input())
for _ in range(t):
    c, v = map(int,input().split())
    print(f'You get {c//v} piece(s) and your dad gets {c%v} piece(s).')

'Python > 백준' 카테고리의 다른 글

[10569] 다면체  (0) 2022.06.14
[9295] 주사위  (0) 2022.06.13
[5522]카드게임  (0) 2022.06.11
[2010] 플러그  (0) 2022.06.10
[9325] 얼마?  (0) 2022.06.09