C. Ayoub and Lost Array(思维dp)

        Codeforces Round #533 (Div. 2)  分析:用dp做,从一位开始递推,取余0,取余1,取余2,互相组合。然后逐渐到n。   #include<iostream> using namespace std; #define ll long long const ll mod=1e9+7; ll dp[200000+5][5]; int main() { ll
相关文章
相关标签/搜索