백준 2342번 : Dance Dance Revolution
문제 링크 : www.acmicpc.net/problem/2342 내 풀이(2021.2.1.) : #include #include #include #include using namespace std; vector dp(100001, vector(5, vector(5, INT_MAX))); int score[5][5] = { {INT_MAX,2,2,2,2}, {INT_MAX,1,3,4,3}, {INT_MAX,3,1,3,4}, {INT_MAX,4,3,1,3}, {INT_MAX,3,4,3,1} }; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); dp[0][0][0] = 0; int i = 1; while (1) { i..
2021. 2. 1.