c++同时处理大小写 摘要:解题思路:利用switch处理注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ char ch[1…… 题解列表 2022年11月17日 0 点赞 0 评论 495 浏览 评分:9.9
C语言dp小白一个 摘要:下面推导一下最大值的情况,最小值同理  int max(int a, i…… 题解列表 2022年11月17日 0 点赞 0 评论 553 浏览 评分:9.9
能量项链---动态规划(C语言) 摘要:解题思路:参考此视频,讲的很详细 能量项链 区间DP看完视频根据代码注释应该理解起来问题不大参考代码:#include<stdio.h> #define MAX 101 #define ma…… 题解列表 2022年11月17日 0 点赞 0 评论 866 浏览 评分:9.9
[编程入门]求和训练题解(C语言) 摘要:解题思路:注意事项:参考代码:#includeint main() { int a,b,c; //定义题目所给3个变量 float Sa,Sb,Sc; …… 题解列表 2022年11月17日 0 点赞 0 评论 410 浏览 评分:0.0
输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a; cin >> a; for (int…… 题解列表 2022年11月17日 0 点赞 0 评论 431 浏览 评分:0.0
汪汪和打针 摘要:解题思路:注意事项:有点漏洞,不过可以过这题参考代码:#include<iostream>using namespace std;int m = 120, l = 100;///定义疫苗的价钱int …… 题解列表 2022年11月17日 0 点赞 0 评论 397 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-出差 摘要:解题思路:将时间和隔离时间的和算作这条路的代价,并用朴素的单源最短路dijkstra算法求出最短路即可注意事项:参考代码:#include <bits/stdc++.h>using namespace…… 题解列表 2022年11月17日 0 点赞 0 评论 856 浏览 评分:6.0
蓝桥杯2022年第十三届决赛真题-最大数字 摘要:解题思路:贪心,从最高位开始能变成9的就变成9,变不成9的,肯定要往大了加,这样才能变得最大。当加和减都能让某一位变成9时,回溯搜索。用全局变量m记录最大值。注意事项:参考代码: #include <…… 题解列表 2022年11月17日 0 点赞 0 评论 1835 浏览 评分:9.8
分段函数 二级C语言 摘要:解题思路: 注意事项:保留两位,double类型。用到平方根函数sqrt()、绝对值函数fabs()、幂函数pow()。参考代码:#include<stdio.h> #include<math.h>…… 题解列表 2022年11月17日 0 点赞 0 评论 466 浏览 评分:0.0
2206: 素数求和 摘要: #include using namespace std; inline int ss_(int a);//内联函数减少运行时间 int main() …… 题解列表 2022年11月16日 0 点赞 0 评论 512 浏览 评分:0.0