-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bronze V] Title: 나머지, Time: 108 ms, Memory: 108080 KB -BaekjoonHub
- Loading branch information
Suho Han
committed
Apr 29, 2024
1 parent
3a641fd
commit cc2cb16
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# [Bronze V] 나머지 - 10430 | ||
|
||
[문제 링크](https://www.acmicpc.net/problem/10430) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 108080 KB, 시간: 108 ms | ||
|
||
### 분류 | ||
|
||
구현, 사칙연산, 수학 | ||
|
||
### 제출 일자 | ||
|
||
2024년 4월 29일 16:46:57 | ||
|
||
### 문제 설명 | ||
|
||
<p>(A+B)%C는 ((A%C) + (B%C))%C 와 같을까?</p> | ||
|
||
<p>(A×B)%C는 ((A%C) × (B%C))%C 와 같을까?</p> | ||
|
||
<p>세 수 A, B, C가 주어졌을 때, 위의 네 가지 값을 구하는 프로그램을 작성하시오.</p> | ||
|
||
### 입력 | ||
|
||
<p>첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000)</p> | ||
|
||
### 출력 | ||
|
||
<p>첫째 줄에 (A+B)%C, 둘째 줄에 ((A%C) + (B%C))%C, 셋째 줄에 (A×B)%C, 넷째 줄에 ((A%C) × (B%C))%C를 출력한다.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
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) |