[백준] 10430번 : 나머지 - Python(파이썬)

강재원·2022년 10월 6일
0

[코딩테스트] Python

목록 보기
101/200



https://www.acmicpc.net/problem/10430

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
print((a+b)%c)
print(((a%c)+(b%c))%c)
print((a*b)%c)
print(((a%c)*(b%c))%c)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글