HelloMinchan
처음처럼
HelloMinchan
LinkedIn
전체 방문자
오늘
어제
  • 분류 전체보기 (306)
    • Backend (4)
      • NestJS (1)
      • Express (1)
      • Spring (2)
    • Infrastructure (1)
      • AWS (1)
    • Frontend (1)
      • Next.js (1)
    • Language & Runtime (4)
      • Java (2)
      • Node.js (2)
    • Computer Science (8)
      • Computer Networks (3)
      • Operating Systems (4)
      • OOP (1)
    • 독서 (4)
      • 데이터 중심 애플리케이션 설계 (3)
      • 객체지향의 사실과 오해 (1)
    • 회고 (4)
      • Project (2)
      • Career (2)
    • Deprecated (280)

채널

  • GitHub
  • LinkedIn

최근 글

태그

  • 프로그래머스C++
  • 백준Go
  • 코딩
  • 알고스팟Python
  • 백엔드
  • 데이터베이스
  • 프로그래밍
  • 백준C++
  • 프로그래머스Python
  • 프로그래머스
  • programmers
  • 알고스팟
  • 개발자
  • Database
  • Baekjoon Online Judge
  • back-end
  • Algospot
  • front-end
  • 백준Python
  • 백준

최근 댓글

인기 글

hELLO
HelloMinchan

처음처럼

[Baekjoon Online Judge] 백준 10430번 나머지(Python)
Deprecated

[Baekjoon Online Judge] 백준 10430번 나머지(Python)

2020. 2. 27. 22:13

© 2020 All Rights Reserved. 주식회사 스타트링크

[Baekjoon Online Judge] 백준 10430번 나머지

(Python)

(글쓴날 : 2020.02.27)

 


* Baekjoon Online Judge, 백준 10430번 문제 Python 언어 풀이입니다.

* 소스 코드의 저작권은 글쓴이에게 있습니다.


 

 

백준 10430번 나머지


1) 문제

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

 

10430번: 나머지

첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000)

www.acmicpc.net


2) 풀이 과정

별다를 게 없는 평범한 정수 연산 문제입니다.

먼저, 3개의 정수를 입력받으신 후 문제에서 요구하는 연산 결과를 줄마다 차례로 출력해 주시면 됩니다.

 

역시나, Python을 사용하신다면 실행 시간의 효율을 위해 입력 함수로 readline() 함수를 사용해 주시면 되겠습니다.


3) 코드

 

* Python 코드

1
2
3
4
5
6
7
8
import sys
input = sys.stdin.readline
 
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)

 

저작자표시 비영리 변경금지 (새창열림)

'Deprecated' 카테고리의 다른 글

[Baekjoon Online Judge] 백준 1330번 두 수 비교하기(Python)  (0) 2020.02.27
[Baekjoon Online Judge] 백준 2588번 곱셈(Python)  (0) 2020.02.27
[Baekjoon Online Judge] 백준 10869번 사칙연산(Python)  (0) 2020.02.27
[Baekjoon Online Judge] 백준 1008번 A/B(Python)  (0) 2020.02.27
[Baekjoon Online Judge] 백준 10998번 A×B(Python)  (0) 2020.02.27
    'Deprecated' 카테고리의 다른 글
    • [Baekjoon Online Judge] 백준 1330번 두 수 비교하기(Python)
    • [Baekjoon Online Judge] 백준 2588번 곱셈(Python)
    • [Baekjoon Online Judge] 백준 10869번 사칙연산(Python)
    • [Baekjoon Online Judge] 백준 1008번 A/B(Python)
    HelloMinchan
    HelloMinchan
    Though you should not fear failure, You should do your very best to avoid it.

    티스토리툴바