IP判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int change(char *s){ int m=0; if(strlen(s)==1) {…… 题解列表 2019年02月11日 0 点赞 0 评论 907 浏览 评分:0.0
统计立方数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int Judge(long long N){ long long i; for…… 题解列表 2019年02月11日 0 点赞 0 评论 1174 浏览 评分:8.0
优质题解 关于圆的面积 (C语言代码) 摘要:解题思路: 两圆相交分如下集中情况:相离、相切、相交、包含。 设两圆圆心分别是O1和O2,半径分别是r1和r2,设d为两圆心距离。又因为两圆有大有小。 相离相切的面积为零d=sqrt…… 题解列表 2019年02月11日 3 点赞 0 评论 2331 浏览 评分: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 评论 546 浏览 评分:0.0
求所给范围内水仙花数并排列 (C语言代码) 摘要:解题思路:注意事项:sign是标记,当其值为0时表示没有水仙花数,输出no。a, b, c分别用来存储个位,十位,百位数字。参考代码:#include<stdio.h>int main(void){ …… 题解列表 2019年02月11日 0 点赞 1 评论 607 浏览 评分:0.0
求总时间 (C语言代码)用递归的方法!!! 摘要:解题思路:这道题也可以连续使用递归来解决。注意事项:参考代码:#include<stdio.h>double function(int x);int main(void){ int N, i; dou…… 题解列表 2019年02月11日 1 点赞 0 评论 827 浏览 评分:0.0
数据结构-图的遍历——深度优先搜索 (C++代码) 摘要:参考代码:#include<cstdio>#include<stack>using std::stack;int map[50][50];//储存邻接矩阵bool visited[50];//判断第n…… 题解列表 2019年02月11日 0 点赞 0 评论 919 浏览 评分:0.0
通用方法,输多少都给你拆开 拆分位数 (C语言代码) 摘要:解题思路:按位取注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n) { …… 题解列表 2019年02月11日 1 点赞 7 评论 1382 浏览 评分:8.5
数据结构-八进制数 (C++代码) 摘要:解题思路:模拟进制转换过程即可注意事项:正序存,倒序输出参考代码:#include <iostream> using namespace std; int main() { int a[10…… 题解列表 2019年02月10日 0 点赞 0 评论 884 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2019年02月10日 8 点赞 0 评论 650 浏览 评分:0.0