728x90
반응형
단순 수학 문제이다. 파이썬은 큰 수들을 신경 쓸 필요가 없어서 참 편하다
for i in range(int(input())):
a = int(input())
b = int(input())
if i != 0:
print()
print(a//b)
print(a%b)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 6975번 Deficient, Perfect, and Abundant(python) (0) | 2021.02.18 |
---|---|
백준 알고리즘 6780번 Sumac Sequences(python) (0) | 2021.02.18 |
백준 알고리즘 6794번 What is n, Daddy?(python) (0) | 2021.02.18 |
백준 알고리즘 1592번 영식이와 친구들(python) (0) | 2021.02.17 |
백준 알고리즘 1568번 새(python) (0) | 2021.02.17 |