inblog logo
|
goho
    알고리즘문제풀기

    [프로그래머스/JAVA]양꼬치

    gov's avatar
    gov
    Nov 22, 2024
    [프로그래머스/JAVA]양꼬치
    Contents
    문제풀이

    문제

    notion image

    풀이

    class Solution { public int solution(int n, int k) { int d = (12000 * n) / 120000; int answer = (12000*n) + (2000 * k) - (2000 * d); return answer; } }
    Share article

    goho

    RSS·Powered by Inblog