1114: C语言考试练习题_排列(dfs) 摘要:解题思路:dfs全排列注意事项:题目的输出顺序, 依次排除第 4 - 1 个数字参考代码:#include<iostream> #include<cmath> using namespace st…… 题解列表 2024年08月10日 0 点赞 0 评论 352 浏览 评分:0.0
牢第,包你懂的 摘要:对数据类型不了解的看这里:[C语言 中的 数据类型 超详解](https://blog.csdn.net/weixin_44982036/article/details/108773054 "C语言 …… 题解列表 2024年08月10日 0 点赞 0 评论 242 浏览 评分:0.0
IP判断(sscanf格式化读入) 摘要:解题思路:sscanf注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { cha…… 题解列表 2024年08月10日 0 点赞 0 评论 247 浏览 评分:0.0
C语言·求解真分式 摘要:解题思路:判断取余是否等于1,3,7,9;若是则是真分式。注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=0;i<40;i++) { if(i…… 题解列表 2024年08月10日 0 点赞 0 评论 210 浏览 评分:0.0
IP地址-python-正则表达式 摘要:解题思路:正则表达式区间0-9 \d 10-99 [1-9]\d 100-199 1\d{2} 200-249 2[0-4]\d …… 题解列表 2024年08月11日 0 点赞 0 评论 335 浏览 评分:0.0
1117: K-进制数-递归求解 摘要:解题思路: 认真看题,找规律,可以发现该题目可以通过递归求解:n=1时,[1-9]n=2时,9*[0-9]n=3时,9*{n-1的}+9*{n-2的}依次类推……参考代码:n = int(inp…… 题解列表 2024年08月11日 0 点赞 0 评论 414 浏览 评分:0.0
K-进制数 DP 摘要:解题思路:DP注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e2 + 10; long long f[N]; …… 题解列表 2024年08月11日 1 点赞 0 评论 270 浏览 评分:0.0
1118: Tom数 C++ 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { long long n; while(cin >>…… 题解列表 2024年08月11日 0 点赞 0 评论 317 浏览 评分:0.0
C语言训练-亲密数 摘要:解题思路: 哈希注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const int N = 3e3 + 10;…… 题解列表 2024年08月11日 0 点赞 0 评论 361 浏览 评分:0.0
C语言训练-列出最简真分数序列* 摘要:解题思路:最大公约数为1注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int gcd(int a, int …… 题解列表 2024年08月11日 0 点赞 0 评论 228 浏览 评分:0.0