From Dev.to
Counting Towers | CSES - Algoritmit ongelmanratkaisussa
https://cses.fi/alon/task/2413 #include #include #include using namespace std; typedef long long ll; ll dp[2][1000001]; int kMod = 1e9 + 7; void precompute() { dp[0][0] = dp[1][0] = 1;...
