728x90
반응형
단순 구현 문제이다.
for i in range(int(input())):
a, b = map(int, input().split())
print(f"Case {i+1}:", end=' ')
if a == 0:
print('0')
continue
if a//b:
print(a//b, end=' ')
if a%b:
print(f"{a%b}/{b}", end='')
print()
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 9299번 Math Tutoring(python) (0) | 2021.02.20 |
---|---|
백준 알고리즘 9298번 Ant Entrapment(python) (0) | 2021.02.20 |
백준 알고리즘 9295번 주사위(python) (0) | 2021.02.20 |
백준 알고리즘 9288번 More Dice(python) (0) | 2021.02.20 |
백준 알고리즘 9286번 Gradabase(python) (0) | 2021.02.20 |