Post

์–‘๊ผฌ์น˜

๐Ÿ“ƒ ๋ฌธ์ œ

image


๐Ÿ”จ ํ’€์ด

1
2
3
4
5
6
7
8
9
class Solution {
    public int solution(int n, int k) {
          int answer = 0;

        answer= n*12000 + (k-n/10)*2000;

        return answer;
    }
}

10์ธ๋ถ„๋‹น ์Œ๋ฃŒ์ˆ˜ํ•˜๋‚˜๊ฐ€ ์„œ๋น„์Šค์ด๋ฏ€๋กœ

์Œ๋ฃŒ์ˆ˜๊ฐœ์ˆ˜ - (์–‘๊ผฌ์น˜n์ธ๋ถ„/10)

This post is licensed under CC BY 4.0 by the author.