A,B,C=map(int,input().split())
print((A+B)%C)
print(((A%C) + (B%C))%C)
print((A*B)%C)
print((A%C) * (B%C)%C)
'Baekjoon > python' 카테고리의 다른 글
[백준 1330번] 두 수 비교하기 (0) | 2022.04.07 |
---|---|
[백준 2588번] 곱셈 (0) | 2022.04.07 |
[백준 18108번] 1998년생인 내가 태국에서는 2541년생?! (0) | 2022.04.07 |
[백준 10926번] ??! (0) | 2022.04.07 |
[백준 10869번] 사칙연산 (0) | 2022.04.07 |