蓝桥杯算法训练VIP-数位分离 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=0; int a[100]; cin>>n;…… 题解列表 2018年08月14日 0 点赞 0 评论 1247 浏览 评分:0.0
蓝桥杯算法训练VIP-完数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=0; int i,j; cin>>n; fo…… 题解列表 2018年08月14日 0 点赞 0 评论 837 浏览 评分:0.0
蓝桥杯算法训练VIP-反置数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f(int a){ int s=0; while(1) {…… 题解列表 2018年08月14日 0 点赞 0 评论 1171 浏览 评分:8.0
蓝桥杯算法训练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 评论 1485 浏览 评分:0.0
数据结构-图的遍历——广度优先搜索 (C++代码)可AC 摘要:解题思路:建立邻接表,并按照题目意思从顶点0到n-1顶点遍历注意事项:参考代码:#include <iostream> using namespace std; int main(){ int…… 题解列表 2018年08月13日 6 点赞 0 评论 1529 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 (C++代码) 摘要:解题思路: 首先,先建变量N,储存数量,再建字符串数组namelist储存名单,输入N,再用for循环输入数据,最后只需要用for循环轮流判断是否相等,根据判断输出.注意事项: strin…… 题解列表 2018年08月13日 0 点赞 0 评论 2194 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题10.7 (C++代码) 摘要:解题思路: 从那里开始复制,什么时候结束.注意事项:参考代码:#include <iostream>#include <stdlib.h>using namespace std;void mcopy(…… 题解列表 2018年08月13日 0 点赞 0 评论 1183 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C++代码) 摘要:解题思路:把题目看懂了,代码自然能打出来。注意事项:参考代码:#include <iostream>#include <stdlib.h>using namespace std;int main(){…… 题解列表 2018年08月13日 0 点赞 0 评论 909 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C++代码) 摘要:解题思路:折腾了一个晚上加早上。 使用双循环解决,刚开始没想到。想到用递归,没实现出来。 解题看双循环那里。注意事项: 注意变量的变化。参考代码:#include <iostream>using…… 题解列表 2018年08月13日 0 点赞 0 评论 721 浏览 评分:0.0
优质题解 钟神赛车 (C++代码)自己AC了都觉得搞笑 摘要:解题思路: 一开始看到是想到田忌赛马的故事,题目也就是按照田忌赛马的思路来求赢的最多场数 这题我还真的是投机取巧AC的,原本想试试的而已,结果却AC了,我都笑了 我的思路是这样的 …… 题解列表 2018年08月12日 17 点赞 5 评论 1617 浏览 评分:8.7