DNA (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int n; cin >> n; int a[n][2], i, …… 题解列表 2019年02月11日 0 点赞 0 评论 961 浏览 评分:0.0
蓝桥杯算法提高VIP-五次方数 (C语言代码) 摘要:解题思路: 根据五次方数的定义来枚举出所有可能的数进行判断即可。参考代码: //先枚举出所有的结果,然后一次性输出,以节省时间 #include <stdio.h> int main(){ …… 题解列表 2019年02月11日 3 点赞 2 评论 764 浏览 评分:0.0
IP判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int change(char *s){ int m=0; if(strlen(s)==1) {…… 题解列表 2019年02月11日 0 点赞 0 评论 1437 浏览 评分:0.0
统计立方数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int Judge(long long N){ long long i; for…… 题解列表 2019年02月11日 0 点赞 0 评论 1651 浏览 评分:8.0
优质题解 关于圆的面积 (C语言代码) 摘要:解题思路: 两圆相交分如下集中情况:相离、相切、相交、包含。 设两圆圆心分别是O1和O2,半径分别是r1和r2,设d为两圆心距离。又因为两圆有大有小。 相离相切的面积为零d=sqrt…… 题解列表 2019年02月11日 3 点赞 0 评论 3564 浏览 评分:9.9
蓝桥杯算法提高- c++_ch03_02 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,z,n,l; scanf("%d",&n); for(i=1;i<=n+1;i++) { fo…… 题解列表 2019年02月11日 0 点赞 0 评论 1056 浏览 评分:0.0
求所给范围内水仙花数并排列 (C语言代码) 摘要:解题思路:注意事项:sign是标记,当其值为0时表示没有水仙花数,输出no。a, b, c分别用来存储个位,十位,百位数字。参考代码:#include<stdio.h>int main(void){ …… 题解列表 2019年02月11日 0 点赞 1 评论 855 浏览 评分:0.0
求总时间 (C语言代码)用递归的方法!!! 摘要:解题思路:这道题也可以连续使用递归来解决。注意事项:参考代码:#include<stdio.h>double function(int x);int main(void){ int N, i; dou…… 题解列表 2019年02月11日 1 点赞 0 评论 1524 浏览 评分:0.0
数据结构-图的遍历——深度优先搜索 (C++代码) 摘要:参考代码:#include<cstdio>#include<stack>using std::stack;int map[50][50];//储存邻接矩阵bool visited[50];//判断第n…… 题解列表 2019年02月11日 0 点赞 0 评论 1487 浏览 评分:0.0
通用方法,输多少都给你拆开 拆分位数 (C语言代码) 摘要:解题思路:按位取注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n) { …… 题解列表 2019年02月11日 1 点赞 7 评论 1637 浏览 评分:8.5