-
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: 10.2 MB -BaekjoonHub
- Loading branch information
Showing
2 changed files
with
71 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,69 @@ | ||
# [level 0] 정수 부분 - 181850 | ||
|
||
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/181850) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 10.2 MB, 시간: 0.00 ms | ||
|
||
### 구분 | ||
|
||
코딩테스트 연습 > 코딩 기초 트레이닝 | ||
|
||
### 채점결과 | ||
|
||
정확성: 100.0<br/>합계: 100.0 / 100.0 | ||
|
||
### 제출 일자 | ||
|
||
2024년 06월 14일 15:40:58 | ||
|
||
### 문제 설명 | ||
|
||
<p>실수 <code>flo</code>가 매개 변수로 주어질 때, <code>flo</code>의 정수 부분을 return하도록 solution 함수를 완성해주세요.</p> | ||
|
||
<hr> | ||
|
||
<h5>제한사항</h5> | ||
|
||
<ul> | ||
<li>0 ≤ <code>flo</code> ≤ 100</li> | ||
</ul> | ||
|
||
<hr> | ||
|
||
<h5>입출력 예</h5> | ||
<table class="table"> | ||
<thead><tr> | ||
<th>flo</th> | ||
<th>result</th> | ||
</tr> | ||
</thead> | ||
<tbody><tr> | ||
<td>1.42</td> | ||
<td>1</td> | ||
</tr> | ||
<tr> | ||
<td>69.32</td> | ||
<td>69</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<hr> | ||
|
||
<h5>입출력 예 설명</h5> | ||
|
||
<p>입출력 예 #1</p> | ||
|
||
<ul> | ||
<li>1.42의 정수 부분은 1입니다.</li> | ||
</ul> | ||
|
||
<p>입출력 예 #2</p> | ||
|
||
<ul> | ||
<li>69.32의 정수 부분은 69입니다.</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,2 @@ | ||
def solution(flo): | ||
return int(flo) |