蓝桥杯算法训练VIP-友好数 (C++代码) 摘要:解题思路:注意事项:参考代码#include<bits/stdc++.h>using namespace std;int f(int a,int b){ int s1=0,s2=0,i,j; for(…… 题解列表 2018年08月14日 0 点赞 0 评论 1018 浏览 评分:0.0
数据结构-图的遍历——广度优先搜索 (C++代码)可AC 摘要:解题思路:建立邻接表,并按照题目意思从顶点0到n-1顶点遍历注意事项:参考代码:#include <iostream> using namespace std; int main(){ int…… 题解列表 2018年08月13日 6 点赞 0 评论 1006 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 (C++代码) 摘要:解题思路: 首先,先建变量N,储存数量,再建字符串数组namelist储存名单,输入N,再用for循环输入数据,最后只需要用for循环轮流判断是否相等,根据判断输出.注意事项: strin…… 题解列表 2018年08月13日 0 点赞 0 评论 1582 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.7 (C++代码) 摘要:解题思路: 从那里开始复制,什么时候结束.注意事项:参考代码:#include <iostream>#include <stdlib.h>using namespace std;void mcopy(…… 题解列表 2018年08月13日 0 点赞 0 评论 826 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C++代码) 摘要:解题思路:把题目看懂了,代码自然能打出来。注意事项:参考代码:#include <iostream>#include <stdlib.h>using namespace std;int main(){…… 题解列表 2018年08月13日 0 点赞 0 评论 661 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C++代码) 摘要:解题思路:折腾了一个晚上加早上。 使用双循环解决,刚开始没想到。想到用递归,没实现出来。 解题看双循环那里。注意事项: 注意变量的变化。参考代码:#include <iostream>using…… 题解列表 2018年08月13日 0 点赞 0 评论 511 浏览 评分:0.0
优质题解 钟神赛车 (C++代码)自己AC了都觉得搞笑 摘要:解题思路: 一开始看到是想到田忌赛马的故事,题目也就是按照田忌赛马的思路来求赢的最多场数 这题我还真的是投机取巧AC的,原本想试试的而已,结果却AC了,我都笑了 我的思路是这样的 …… 题解列表 2018年08月12日 17 点赞 5 评论 1379 浏览 评分:8.7
C二级辅导-温度转换 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <iomanip>//与注释匹配的头文件using namespace std;int main(int argc,…… 题解列表 2018年08月12日 0 点赞 0 评论 746 浏览 评分:0.0
川哥的吩咐 (C++代码) 摘要:解题思路: 正整数大数加法,思路是输入两个string对象a和b 把a字符串中的每一个数字都逆序存储在int数 题解列表 2018年08月12日 14 点赞 0 评论 1461 浏览 评分:8.4
蓝桥杯算法提高VIP-大数加法 (C++代码)可AC 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring> using namespace std; char a[1001],b[1001];…… 题解列表 2018年08月12日 4 点赞 0 评论 731 浏览 评分:0.0