Skip to content

Commit 301f9db

Browse files
committed
[level 0] Title: 두 수의 나눗셈, Time: 0.02 ms, Memory: 75.8 MB -BaekjoonHub
1 parent b9edf69 commit 301f9db

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

프로그래머스/0/120806. 두 수의 나눗셈/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 0] 두 수의 나눗셈 - 120806
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120806?language=java)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120806)
44

55
### 성능 요약
66

7-
메모리: 74.4 MB, 시간: 0.27 ms
7+
메모리: 75.8 MB, 시간: 0.02 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2026년 06월 18일 16:14:30
19+
2026년 06월 21일 13:30:56
2020

2121
### 문제 설명
2222

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
class Solution {
22
public int solution(int num1, int num2) {
3-
double res = (double) num1 / (double) num2 * 1000;
4-
System.out.println(res);
5-
return (int) res;
3+
return (int) ((double) num1 * 1000 / num2);
64
}
75
}

0 commit comments

Comments
 (0)