-
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.
[level 0] Title: 나머지 구하기, Time: 0.00 ms, Memory: 9.99 MB -BaekjoonHub
- Loading branch information
Showing
2 changed files
with
76 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,73 @@ | ||
# [level 0] 나머지 구하기 - 120810 | ||
|
||
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120810) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 9.99 MB, 시간: 0.00 ms | ||
|
||
### 구분 | ||
|
||
코딩테스트 연습 > 코딩테스트 입문 | ||
|
||
### 채점결과 | ||
|
||
정확성: 100.0<br/>합계: 100.0 / 100.0 | ||
|
||
### 제출 일자 | ||
|
||
2024년 05월 23일 01:57:02 | ||
|
||
### 문제 설명 | ||
|
||
<p>정수 <code>num1</code>, <code>num2</code>가 매개변수로 주어질 때, <code>num1</code>를 <code>num2</code>로 나눈 나머지를 return 하도록 solution 함수를 완성해주세요.</p> | ||
|
||
<hr> | ||
|
||
<h4>제한사항</h4> | ||
|
||
<ul> | ||
<li>0 < <code>num1</code> ≤ 100</li> | ||
<li>0 < <code>num2</code> ≤ 100</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<h4>입출력 예</h4> | ||
<table class="table"> | ||
<thead><tr> | ||
<th>num1</th> | ||
<th>num2</th> | ||
<th>result</th> | ||
</tr> | ||
</thead> | ||
<tbody><tr> | ||
<td>3</td> | ||
<td>2</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>10</td> | ||
<td>5</td> | ||
<td>0</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<hr> | ||
|
||
<h4>입출력 예 설명</h4> | ||
|
||
<p>입출력 예 #1</p> | ||
|
||
<ul> | ||
<li><code>num1</code>이 3, <code>num2</code>가 2이므로 3을 2로 나눈 나머지 1을 return 합니다.</li> | ||
</ul> | ||
|
||
<p>입출력 예 #2</p> | ||
|
||
<ul> | ||
<li><code>num1</code>이 10, <code>num2</code>가 5이므로 10을 5로 나눈 나머지 0을 return 합니다.</li> | ||
</ul> | ||
|
||
|
||
> 출처: 프로그래머스 코딩 테스트 연습, https://school.programmers.co.kr/learn/challenges |
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,3 @@ | ||
def solution(num1, num2): | ||
answer = num1%num2 | ||
return answer |