陶陶摘苹果 (C语言代码) 摘要:解题思路:使用数组解会显得稍微简洁一点注意事项:参考代码:# include<stdio.h>int main(){ int a[11],i,num=0; for(i=0;i<=9;++i) scan…… 题解列表 2018年04月13日 0 点赞 0 评论 714 浏览 评分:0.0
C语言训练-亲密数 (C语言代码) 摘要:解题思路:把a的所有因子加起来令为b ,再把b的所有因子加起来判断是否为b即可。注意事项:参考代码:# include<stdio.h>int all_div(int b){ int j,c=0; f…… 题解列表 2018年04月13日 0 点赞 0 评论 1789 浏览 评分:0.0
校门外的树 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int Max=10000+5; …… 题解列表 2018年04月13日 2 点赞 0 评论 1213 浏览 评分:0.0
蓝桥杯算法提高VIP-陶陶摘苹果2 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; while(cin>>n) {…… 题解列表 2018年04月13日 0 点赞 0 评论 893 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b;printf("请输入两个整数");scanf("%d %d",&a,&b);pr…… 题解列表 2018年04月13日 0 点赞 0 评论 732 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.12 (C语言代码)思路清晰,代码工整!从a链表中删去b链表中有相同学号的那些节点 摘要:参考代码如下:#include <stdio.h> #include <stdlib.h> //定义一个学生结构体 typedef struct Student { int i…… 题解列表 2018年04月13日 1 点赞 1 评论 978 浏览 评分:0.0
陶陶摘苹果 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a[11]; for(int i=0;i<…… 题解列表 2018年04月12日 0 点赞 0 评论 1402 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题12.1 (C语言代码)将一个十进制数转为二进制 摘要:直接除2取余就好了#include <stdio.h> #include <stdlib.h> int main(void) { int a; scanf("%d", &a);…… 题解列表 2018年04月12日 0 点赞 0 评论 1497 浏览 评分:9.9
优质题解 Manchester- 查找最小的k个元素 摘要:解题思路:①:输入n,k②:输入n个数③:使用合并排序把序列从小到大排序④:输出下标为0到k-1的数注意事项:即便最小的k个数中有重复的也要输出,不能重复的只输出一遍如输入 n=8 k=4 1…… 题解列表 2018年04月12日 7 点赞 0 评论 2139 浏览 评分:6.0
敲七游戏 (C++代码) 摘要:解题思路:首先看这个数是否是7的倍数,之后不断循环除10 判断对10取模是否为7.注意事项:参考代码:#include<iostream> #include<algorithm> using na…… 题解列表 2018年04月12日 10 点赞 0 评论 2711 浏览 评分:9.2