옷가게 할인받기(스스로 잘푼케이스)

Psj·3일 전
0

코딩테스트

목록 보기
25/30

class Solution {
    public int solution(int price) {
        return price>=500_000 ? (int)(price*0.8) : price>=300_000 ? (int)(price*0.9) : price>=100_000 ? (int)(price*0.95) : price;
    }
}
profile
Software Developer

0개의 댓글

관련 채용 정보