题解列表
C语言程序设计教程(第三版)课后习题6.7 (C++代码)
摘要:解题思路:循环暴力破解注意事项:我这里用到的变量有点多,所以看着有点乱,仔细看还是可以看得懂的。参考代码:#include<iostream>using namespace std;int main(……
蓝桥杯算法提高VIP-质数的后代 (C++代码)
摘要:解题思路: 啊,筛表好笨啊。参考代码:#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
cons……
简单的数学题 (C++代码)(不好玩)
摘要:注意事项: 不好玩。参考代码:#include<bits/stdc++.h>
using namespace std;
int main() {
int A = 3, B =……
青年歌手大奖赛_评委会打分 (C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<algorithm>
using namespace std;
const int M=105;
int ……
判断第几天 (C++代码)(不好玩)
摘要:注意事项: 不好玩。参考代码:#include<bits/stdc++.h>
using namespace std;
int is(int num) {
if ((n……
蓝桥杯算法训练VIP-简单加法(基本型) (C++代码)(不好玩)
摘要:注意事项: 不好玩。参考代码:#include<bits/stdc++.h>
using namespace std;
int is(int i1, int i2……
蓝桥杯算法训练VIP-筛选号码 (C++代码)(不好玩)
摘要:注意事项: 不好玩。参考代码:#include<bits/stdc++.h>
using namespace std;
int is(int n, int m) {
int ……
蓝桥杯算法训练VIP-装箱问题 (C++代码)(递归)
摘要: 只要知道递归出口就行了,状态转移方程很容易找。参考代码:#include<bits/stdc++.h>
using namespace std;
int DP(int volu……
C语言程序设计教程(第三版)课后习题8.9 (C++代码)
摘要:解题思路:在自定义函数中用到if语句的多分支嵌套结构,分四种情况统计字符串中字母、数字、空格和其他字符的个数注意事项:自定义函数sort()中,形参_a,b,c,d应按地址传递,即应加上‘&’参考代码……