본문 바로가기
Algorithm/Python

10430 파이썬 한 줄에 하나씩 출력하기

by Saans 2022. 4. 2.

채점 현황 (acmicpc.net)

A,B,C = map(int, input().split())
print((A+B)%C , ((A%C) + (B%C))%C, (A*B)%C, ((A%C)* (B%C))%C, sep='\n')

sep = '\n'

한 줄에 하나씩 출력 가능

댓글