• Home
  • About
    • JOOS photo

      JOOS

      Joos's blog

    • Learn More
    • Email
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

[백준] 10430번 : 나머지 with python3

26 Sep 2018

Reading time ~1 minute

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

import sys

read = lambda : sys.stdin.readline().strip().split(' ')
a, b, c = map(int, read())
print((a+b)%c)
print(((a%c) +(b%c))%c )
print((a*b)%c)
print(( (a%c) * (b%c))%c)



algorithm백준 Share Tweet +1