

class Solution {
public int solution(int age) {
int currentYear = 2022;
int birth = 2022-age+1;
int answer = birth;
return answer;
}
}
'코딩테스트 예제' 카테고리의 다른 글
프로그레머스 문자열 뒤집기 예제 (1) | 2023.05.12 |
---|---|
프로그래머스 배열뒤집기 예제 (0) | 2023.05.12 |
프로그래머스 아이스아메리카노 예제 (0) | 2023.05.12 |
손코딩 (0) | 2023.04.18 |
프로그래머스 옷가게 할인받기 (0) | 2023.04.16 |