Skip to content

Commit b653b04

Browse files
committed
[level 0] Title: 숫자 비교하기, Time: 0.02 ms, Memory: 75.2 MB -BaekjoonHub
1 parent 4951b0f commit b653b04

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

프로그래머스/0/120807. 숫자 비교하기/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 0] 숫자 비교하기 - 120807
22

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

55
### 성능 요약
66

7-
메모리: 10.1 MB, 시간: 0.00 ms
7+
메모리: 75.2 MB, 시간: 0.02 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2024년 08월 06일 12:49:41
19+
2026년 06월 19일 14:08:21
2020

2121
### 문제 설명
2222

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
class Solution {
22
public int solution(int num1, int num2) {
3-
if (num1 == num2){
4-
return 1;
5-
}
6-
else{
7-
return -1;
8-
}
3+
return (num1 == num2) ? 1 : -1;
94
}
105
}

0 commit comments

Comments
 (0)