jmpark0118 / CODING_TEST_PRACTICE

0 stars 0 forks source link

Practice>Python>Math>Mod Divmod #71

Open jmpark0118 opened 3 years ago

jmpark0118 commented 3 years ago

image image

출처 : https://www.hackerrank.com/challenges/python-mod-divmod/problem

jmpark0118 commented 3 years ago

if __name__ == '__main__':
    numer = int(input())
    denom = int(input())

    quotient = numer//denom
    remainder = numer%denom
    answer = '(' + str(quotient) + ', ' + str(remainder) + ')'

    print(quotient, remainder, answer, sep='\n')