์๊ผฌ์น
๐ ๋ฌธ์
๐จ ํ์ด
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.