728x90
반응형

단순 사칙연산 문제이다.

a, b = map(int, input().split())
c, d = divmod(a, b)
if a != 0 and b < 0:
    c, d = c+1, d-b
print(c)
print(d)
728x90
반응형

+ Recent posts