퇴사

· 백준
코드#include #include #include using namespace std;int n,x,y, dp[17][1003]; // 상태값은 day와 value 2가지pair a[17];int go(int day, int value) { if(day >= n + 1) return 0; if(dp[day][value] != -1) return dp[day][value]; int &ret = dp[day][value]; int include = 0; // 일을 하는 경우 if(day + a[day].first > n; memset(dp, -1, sizeof(dp)); for(int i = 1; i > x >> y; a[i] = {x,y}; }..