Mod Divmod
-
hackerrank.com Practice>Python>Math>Mod Divmodhackerrank.com 2019. 2. 24. 13:39
hackerrank.com Mod DivmodProblem link : https://www.hackerrank.com/challenges/python-mod-divmod/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaignDifficulty : Easy Tipdivmod() return as tupletuple can be accessible like array such as r[0] r[1] Soulution a = int(input()) b = int(input()) r = divmod(a, b) print(r[0]) print(r[1]) print(r)