[dp] 15988 1,2,3 더하기 3
15988 1,2,3 더하기 3 풀이코드 #include #include #include #include #include #include #include using namespace std; // 15988 1,2,3 더하기 3 const long long MOD = 1000000009; const int MAX = 1000000; int n; int cache[MAX + 1]; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int t; cin >> t; cache[1] = 1; cache[2] = 2; cache[3] = 4; for(int i = 4; i > n; cout