震宇大神的杀毒软件 (C++代码) 摘要:解题思路:利用vector实现动态数组,利用algorithm中的sort函数进行排序,最后利用反向迭代器进行逆序输出。注意事项:每次的最后需要将动态数组清空,利用clear删除容器中的所有内容参考代…… 题解列表 2019年01月10日 0 点赞 0 评论 1149 浏览 评分:0.0
蓝桥杯历届试题-连号区间数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include<cstdio> #include<cmath> using namespace std; i…… 题解列表 2019年01月09日 0 点赞 0 评论 703 浏览 评分:0.0
奖学金 (C++代码) 摘要:整理学习:方式一: 自定义 cmp() 比较函数#include<cstdio> #include<algorithm> using namespace std; struct Stu…… 题解列表 2019年01月09日 0 点赞 0 评论 1329 浏览 评分:0.0
IP判断 (C++代码) 摘要:#include<bits/stdc++.h> using namespace std; const int Max=300; int main() { char str[Max],…… 题解列表 2019年01月08日 0 点赞 0 评论 1176 浏览 评分:0.0
蓝桥杯算法训练VIP-学生成绩 (C++代码) 摘要:解题思路:(1)我的思路是直接用C++中的STL的排序函数sort实现,但是无法解决成绩相同时,按原来的输入的顺序输出,所以多增加一个成员变量id号保存原来的序号即可。(2)发表自己题解之后发现其他大…… 题解列表 2019年01月08日 0 点赞 0 评论 1020 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C++代码) 摘要:解题思路:用c++感觉很简单,因为有cin cout。注意事项:参考代码:#include<iostream>using namespace std;struct GROUP{ char num[1…… 题解列表 2019年01月08日 0 点赞 0 评论 1838 浏览 评分:0.0
计算输入数据的和与乘积 (C++代码) 摘要:解题思路:注意最好用long long 型数据,否则为10位的时候可能越界,另外一定要考虑输入的数据为0的情况,否则乘积就不对。参考代码:include <iostream> using names…… 题解列表 2019年01月08日 0 点赞 0 评论 1247 浏览 评分:0.0
3sum (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int main() { …… 题解列表 2019年01月07日 1 点赞 3 评论 510 浏览 评分:0.0
Give me the answer (C++代码) 摘要:解题思路:先按照题意码了代码,思路见链接:https://blog.dotcpp.com/a/57074然后发现内存爆了,只好改变一下思路。输出前50个值,寻找规律,发现连续的两个值是一样的。然后把数…… 题解列表 2019年01月07日 1 点赞 0 评论 1172 浏览 评分:0.0
Give me the answer (C++代码)内存超限,仅供参考 摘要:解题思路:0 1 1 2 2 1+1 3 2+1 1+1+1 4 4 2+2 2+1+1 1+1+1+1 5 4+1 2+2+1 2+1+1+1 1+1+1+1+1 6…… 题解列表 2019年01月07日 0 点赞 0 评论 1511 浏览 评分:0.0