C语言 最大数问题 快速排序求最大值 摘要:练练快排罢了不用参考参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> in…… 题解列表 2024年04月12日 0 点赞 0 评论 224 浏览 评分:0.0
巧解大数问题 摘要:#include <iostream> #include <cmath> using namespace std; /* 直接使用 unsigned long long 仍然无法满足我们…… 题解列表 2024年04月12日 0 点赞 0 评论 134 浏览 评分:0.0
吃桃子问题 摘要:解题思路:原本有若干桃子,猴子每天吃掉剩下的桃子的一半多一个,注意,是先吃一半,再吃一个。到了第N天时,还剩下1个桃子。这一题可以用循环倒推的方式来解题。从第一天到第N-1天每天都是先吃一半,再吃一个…… 题解列表 2024年04月12日 0 点赞 0 评论 197 浏览 评分:0.0
蓝桥杯历届试题-翻硬币(贪心) 摘要:#include <iostream> #include <cstring> using namespace std; const int N = 110; int n; char …… 题解列表 2024年04月12日 0 点赞 0 评论 186 浏览 评分:0.0
数字统计(c++) 摘要:#include <iostream> #include <cmath> using namespace std; /* 统计两个区间内,数字2出现的个数 2 - 22 总共出现了…… 题解列表 2024年04月12日 0 点赞 0 评论 248 浏览 评分:0.0
小白随便写的,记录一下 摘要:> 由递推关系式可知 f(n) = f(n - 1)+ f(n - 3) > > 数据范围不大时可以开一个数组把所有可能的输入对应的 f(n) 求出 (就是打表嘛) > > 数据范围大时可以考…… 题解列表 2024年04月12日 0 点赞 0 评论 401 浏览 评分:0.0
较简单的思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int N,a[100],b[100]; scanf_s("%d", &N); int i,j; int ma…… 题解列表 2024年04月12日 0 点赞 0 评论 213 浏览 评分:0.0
1130: C语言训练 数字母 ctype快速计数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #inc…… 题解列表 2024年04月12日 0 点赞 0 评论 232 浏览 评分:0.0
字串简写——前缀和+回溯 摘要:#include<bits/stdc++.h>#include<cstdio> #include<cstring>using namespace std;typedef long long LL;LL…… 题解列表 2024年04月12日 2 点赞 0 评论 475 浏览 评分:0.0