[문제 링크] : https://www.acmicpc.net/problem/25704#include using namespace std;int main(){ int N, P; cin >> N >> P; int Ans = P; if(N >= 5){ Ans = min(Ans, P - 500); } if(N >= 10){ Ans = min(Ans, P / 10 * 9); } if(N >= 15){ Ans = min(Ans, P - 2000); } if(N >= 20){ Ans = min(Ans, P / 4 * 3); } cout