문제 링크입니다: https://www.acmicpc.net/problem/10707 간단한 구현 문제였습니다. #include #include using namespace std; int main(void) { ios_base::sync_with_stdio(0); cin.tie(0); int A, B, C, D, P; cin >> A >> B >> C >> D >> P; int temp1 = A * P; int temp2 = B; if (P > C) temp2 += (P - C)*D; cout