1. 프로그래머스 기출 문제
This commit is contained in:
14
과제2폴더/2-1.txt
Normal file
14
과제2폴더/2-1.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int solution(int n, int k) {
|
||||
int answer = 0;
|
||||
|
||||
// 총액
|
||||
answer = n * 12000;
|
||||
answer += (k - (n / 10)) * 2000;
|
||||
|
||||
return answer;
|
||||
}
|
Reference in New Issue
Block a user