题解列表
数位 dp #2493: 信息学奥赛一本通T1589-不要 62(c++) 有注释
摘要:```
#include
using namespace std;
const int N =35;
//I位数字且最高位是J的答案数量
int f[N][10];
voi……
数位dp#2491: 信息学奥赛一本通T1587-Windy 数(C++)
摘要:```
#include
using namespace std;
const int N =11;
///一共有I位,最高位是J的windy数的个数
int f[N][10];……
数位dp #2490: 信息学奥赛一本通T1586-数字游戏(C++) 看注释
摘要:```
#include
using namespace std;
const int N =15;
//I位数字且最高位是J的不降数的个数
int f[N][N];
vo……
有点懵,搞不清楚二维和一维使用
摘要:解题思路:注意事项:参考代码#include<iostream>using namespace std;int n, m;int a[5010], b[5010], dp[5010];int main……
编写题解 2816: 统计满足条件的4位数个数
摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long……
2801: 奇数求和题解
摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin……