[编程入门]求和训练 摘要:解题思路:这道题可以分成三步来思考,运用for循环,先求1~a之和(s+=i)再求1~b的平方和(s1+=i*i)最后求1~c的倒数和(s2+=1.0/i)注意事项:s、s1、s2都是double类型…… 题解列表 2022年05月08日 0 点赞 0 评论 205 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:因为有四种类型的字符需要统计,所以我们可以建立四个累加器来计算,同时运用for语句扫遍字符串,用if语句判断四种类型(islower(s[i])||isupper(s[i]),isdigit…… 题解列表 2022年05月08日 0 点赞 0 评论 334 浏览 评分:9.9
c++格子刷油漆 摘要:解题思路:https://www.freesion.com/article/4385447958/参考代码:#include<iostream> using namespace std; int …… 题解列表 2022年05月08日 0 点赞 0 评论 448 浏览 评分:2.0
1159: 偶数求和 简单易懂的优质题解 摘要:解题思路:巧用循环注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, m = 0 ,g; while(cin …… 题解列表 2022年05月08日 0 点赞 0 评论 250 浏览 评分:0.0
信息学奥赛一本通T1448-电路维修 摘要:``` /* 本题使用了双端队列进行解决 */ #include #define x first #define y second using namespace std;…… 题解列表 2022年05月08日 0 点赞 0 评论 664 浏览 评分:9.9
编写题解 2024: 链表删除练习--STL 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<deque> using namespace std; void print_Deque(deque<int…… 题解列表 2022年05月08日 0 点赞 0 评论 219 浏览 评分:0.0
编写题解 1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a[10],b[10]; in…… 题解列表 2022年05月08日 0 点赞 0 评论 201 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并---STL(map)容器求解 摘要:解题思路:map容器,自动排好序。键值对分别存储学号和成绩注意事项:参考代码:#include<iostream> using namespace std; #include<map> void…… 题解列表 2022年05月08日 0 点赞 0 评论 262 浏览 评分:0.0
蓝桥杯算法训练VIP-判定字符位置 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string s;int t;int main() { cin>>s; for…… 题解列表 2022年05月08日 0 点赞 0 评论 213 浏览 评分:0.0
蓝桥杯算法提高VIP-陶陶摘苹果2 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long n,t,m,a,h;int main() { cin>>n…… 题解列表 2022年05月08日 0 点赞 0 评论 181 浏览 评分:0.0