奖学金 (C++代码) 摘要:整理学习:方式一: 自定义 cmp() 比较函数#include<cstdio> #include<algorithm> using namespace std; struct Stu…… 题解列表 2019年01月09日 0 点赞 0 评论 952 浏览 评分: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 评论 692 浏览 评分:0.0
蓝桥杯算法训练VIP-学生成绩 (C++代码) 摘要:解题思路:(1)我的思路是直接用C++中的STL的排序函数sort实现,但是无法解决成绩相同时,按原来的输入的顺序输出,所以多增加一个成员变量id号保存原来的序号即可。(2)发表自己题解之后发现其他大…… 题解列表 2019年01月08日 0 点赞 0 评论 652 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.3 (C++代码) 摘要:解题思路:用c++感觉很简单,因为有cin cout。注意事项:参考代码:#include<iostream>using namespace std;struct GROUP{ char num[1…… 题解列表 2019年01月08日 0 点赞 0 评论 1253 浏览 评分:0.0
计算输入数据的和与乘积 (C++代码) 摘要:解题思路:注意最好用long long 型数据,否则为10位的时候可能越界,另外一定要考虑输入的数据为0的情况,否则乘积就不对。参考代码:include <iostream> using names…… 题解列表 2019年01月08日 0 点赞 0 评论 910 浏览 评分:0.0
3sum (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int main() { …… 题解列表 2019年01月07日 1 点赞 3 评论 412 浏览 评分:0.0
Give me the answer (C++代码) 摘要:解题思路:先按照题意码了代码,思路见链接:https://blog.dotcpp.com/a/57074然后发现内存爆了,只好改变一下思路。输出前50个值,寻找规律,发现连续的两个值是一样的。然后把数…… 题解列表 2019年01月07日 1 点赞 0 评论 786 浏览 评分: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 评论 1085 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:直接调用库函数注意事项:注意输出的格式参考代码:#include<cstdio> #include<algorithm> using namespace std; int main() { …… 题解列表 2019年01月06日 0 点赞 0 评论 544 浏览 评分:0.0
汽水瓶 (C++代码) 摘要:解题思路:利用递归算法,因每次手中空瓶子数目换汽水的计算方法一样所以可以归纳出公式啦注意事项:参考代码:#include<iostream>void solve(int n);using namesp…… 题解列表 2019年01月06日 0 点赞 0 评论 731 浏览 评分:0.0