蓝桥杯算法训练VIP-数对 (C++代码) 摘要:#include <bits/stdc++.h> using namespace std; int main() { int n,a[100],t=0; cin>>n; for(in…… 题解列表 2018年07月01日 1 点赞 0 评论 827 浏览 评分:2.0
蓝桥杯算法训练VIP-特殊的数字四十 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int f(int n) { int sum=0; while(…… 题解列表 2018年07月02日 2 点赞 0 评论 751 浏览 评分:2.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路: 不调用math函数(如果没有懂得原理只会调用函数的后果你懂的) 本题意在考察我们数组数据的 录入,保存,查找,交换。 对于本题: 1.定义数组 a[20] …… 题解列表 2018年07月04日 7 点赞 4 评论 803 浏览 评分:2.0
畅通工程 (C++代码)并查集 摘要:解题思路: 留个笔记 此题相当于寻找有多少连通块,如果只有一个,说明全部连通,不需要修路, 如果有两个连通块,则只需随意在他们之间修条路即可连通。…… 题解列表 2018年07月10日 1 点赞 0 评论 1192 浏览 评分:2.0
C语言训练-亲密数 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*两个不同的自然数A和B,如果整数A的全部因子(包括1,不包括A本身)之和等于B;且整数B的全部因子(包括1,不包括B本身)之和等于A,则将整数A和B称为亲密数。求30…… 题解列表 2018年07月10日 1 点赞 0 评论 857 浏览 评分:2.0
畅通工程 (C++代码)(连通树) 摘要:解题思路: 比并查集慢。寻找连通树的数量。参考代码:#include<bits/stdc++.h> using namespace std; const int mapSize = 1011…… 题解列表 2018年07月18日 0 点赞 1 评论 1423 浏览 评分:2.0
Hello, world! (C++代码) 摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; …… 题解列表 2018年07月20日 1 点赞 0 评论 1088 浏览 评分:2.0
蓝桥杯算法提高VIP-盾神与砝码称重 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<malloc.h> #define ElemType int //假定线性表中数据元素为int类型 typedef…… 题解列表 2018年07月24日 0 点赞 0 评论 1180 浏览 评分:2.0
数日子 (C语言代码) 摘要:解题思路:直接输出注意事项:参考代码:#include<stdio.h>int main(){printf("200\n");return 0;}…… 题解列表 2018年07月26日 0 点赞 1 评论 391 浏览 评分:2.0
台球碰撞 (C++代码) 摘要:#include <stdio.h>#include<iostream>#include<math.h>#include<iomanip>using namespace std;double xs(i…… 题解列表 2018年07月30日 0 点赞 0 评论 936 浏览 评分:2.0