1. 프로그래머스 기출 문제

This commit is contained in:
2025-04-08 13:51:41 +09:00
parent 6cfea47a0f
commit 80521c093a
8 changed files with 161 additions and 0 deletions

14
과제2폴더/2-1.txt Normal file
View 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;
}