题解列表

筛选

1117: K-进制数-递归求解

摘要:解题思路:    认真看题,找规律,可以发现该题目可以通过递归求解:n=1时,[1-9]n=2时,9*[0-9]n=3时,9*{n-1的}+9*{n-2的}依次类推……参考代码:n = int(inp……

K-进制数 DP

摘要:解题思路:DP注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; long long f[N]; ……

1118: Tom数 C++

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long n; while(cin >>……

C语言训练-亲密数

摘要:解题思路: 哈希注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const int N = 3e3 + 10;……

C语言训练-委派任务*

摘要:解题思路:深搜递归注意事项:参考代码:#include<iostream> #include<cstdio> #include<cstring> using namespace std; co……

C语言训练-尼科彻斯定理

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m; c……

C语言训练-求PI*

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 1e2 + 10……