1 parent 4951b0f commit b653b04Copy full SHA for b653b04
2 files changed
프로그래머스/0/120807. 숫자 비교하기/README.md
@@ -1,10 +1,10 @@
1
# [level 0] 숫자 비교하기 - 120807
2
3
-[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120807?language=python3)
+[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120807)
4
5
### 성능 요약
6
7
-메모리: 10.1 MB, 시간: 0.00 ms
+메모리: 75.2 MB, 시간: 0.02 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2024년 08월 06일 12:49:41
+2026년 06월 19일 14:08:21
20
21
### 문제 설명
22
프로그래머스/0/120807. 숫자 비교하기/숫자 비교하기.java
@@ -1,10 +1,5 @@
class Solution {
public int solution(int num1, int num2) {
- if (num1 == num2){
- return 1;
- }
- else{
- return -1;
+ return (num1 == num2) ? 1 : -1;
}
0 commit comments