蓝桥杯算法训练VIP-数对 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int i=1;i<=…… 题解列表 2018年08月14日 0 点赞 0 评论 629 浏览 评分:0.0
蓝桥杯算法训练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 评论 887 浏览 评分: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 评论 660 浏览 评分: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 评论 876 浏览 评分: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 评论 1065 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题12.5 (C语言代码)位操作法 摘要:解题思路:左(右)移时判断最高(低)位的值,为1则移位后在最低(高)位写入1,否则只移位注意事项:参考代码:#include <stdio.h> unsigned int move(unsign…… 题解列表 2018年08月13日 0 点赞 0 评论 825 浏览 评分:0.0
数据结构-图的遍历——广度优先搜索 (C++代码)可AC 摘要:解题思路:建立邻接表,并按照题目意思从顶点0到n-1顶点遍历注意事项:参考代码:#include <iostream> using namespace std; int main(){ int…… 题解列表 2018年08月13日 6 点赞 0 评论 1026 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (Java代码) 摘要:解题思路:注意事项:如果看的话建议复制粘贴放到eclipse后ctrl+shit+f键整理代码。这样就看的清楚了。 在这里我写的代码都是有格式的,但是系统把代码格式变成默认的,看的话不方…… 题解列表 2018年08月13日 1 点赞 0 评论 1282 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (Java代码) 摘要:解题思路:注意事项:如果看的话建议复制粘贴放到eclipse后ctrl+shit+f键整理代码。这样就看的清楚了。 在这里我写的代码都是有格式的,但是系统把代码格式变成默认的,看的话不方…… 题解列表 2018年08月13日 1 点赞 0 评论 1165 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 (C++代码) 摘要:解题思路: 首先,先建变量N,储存数量,再建字符串数组namelist储存名单,输入N,再用for循环输入数据,最后只需要用for循环轮流判断是否相等,根据判断输出.注意事项: strin…… 题解列表 2018年08月13日 0 点赞 0 评论 1642 浏览 评分:9.9