Skip to content

Commit

Permalink
[level 0] Title: 두 수의 차, Time: 0.00 ms, Memory: 10.2 MB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
boyamie committed Jun 29, 2024
1 parent 6346fe8 commit 71e58c1
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
73 changes: 73 additions & 0 deletions 프로그래머스/0/120803. 두 수의 차/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# [level 0] 두 수의 차 - 120803

[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120803)

### 성능 요약

메모리: 10.2 MB, 시간: 0.00 ms

### 구분

코딩테스트 연습 > 코딩테스트 입문

### 채점결과

정확성: 100.0<br/>합계: 100.0 / 100.0

### 제출 일자

2024년 06월 29일 23:06:17

### 문제 설명

<p>정수 <code>num1</code>과 <code>num2</code>가 주어질 때, <code>num1</code>에서&nbsp;<code>num2</code>를 뺀 값을 return하도록 soltuion 함수를 완성해주세요.</p>

<hr>

<h5>제한사항</h5>

<ul>
<li>-50000 ≤ <code>num1</code> ≤ 50000</li>
<li>-50000 ≤ <code>num2</code> ≤ 50000</li>
</ul>

<hr>

<h4>입출력 예</h4>
<table class="table">
<thead><tr>
<th>num1</th>
<th>num2</th>
<th>result</th>
</tr>
</thead>
<tbody><tr>
<td>2</td>
<td>3</td>
<td>-1</td>
</tr>
<tr>
<td>100</td>
<td>2</td>
<td>98</td>
</tr>
</tbody>
</table>
<hr>

<h5>입출력 예 설명</h5>

<p>입출력 예 #1</p>

<ul>
<li><code>num1</code>이 2이고 <code>num2</code>가 3이므로 2 - 3 = -1을 return합니다.</li>
</ul>

<p>입출력 예 #2</p>

<ul>
<li><code>num1</code>이 100이고 <code>num2</code>가 2이므로 100 - 2 = 98을 return합니다.</li>
</ul>


> 출처: 프로그래머스 코딩 테스트 연습, https://school.programmers.co.kr/learn/challenges
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def solution(num1, num2):
return num1 - num2

0 comments on commit 71e58c1

Please sign in to comment.