BOJ - 1271 - 엄청난 부자2
Updated:
import sys
def solution():
N, M = map(int, sys.stdin.readline().split())
N = str(N)
num = ""
ret = ""
for ndx in N:
num += ndx
num = int(num)
ret += str(num // M)
num = str(num % M)
print(int(ret))
print(num)
solution()
https://www.acmicpc.net/problem/1271
Leave a comment