C语言训练-列出最简真分数序列* (C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(){ int i; for(i=1;i<=40;++i){ if(i%2!=0 && i%5!=0) print…… 题解列表 2018年04月13日 0 点赞 0 评论 1301 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(){ int i,b,s,g; scanf("%d",&i); if(i/1000==0){ b=i/100; …… 题解列表 2018年04月13日 0 点赞 0 评论 1230 浏览 评分:0.0
C语言训练-8除不尽的数 (C语言代码) 摘要:解题思路:注意事项:注意是这个数除以8就行了参考代码:#include<stdio.h>int main(){ int i=0,a ; while(1) { if(i%8==1 && (i/…… 题解列表 2018年04月13日 0 点赞 0 评论 1285 浏览 评分:0.0
陶陶摘苹果 (C语言代码) 摘要:解题思路:使用数组解会显得稍微简洁一点注意事项:参考代码:# include<stdio.h>int main(){ int a[11],i,num=0; for(i=0;i<=9;++i) scan…… 题解列表 2018年04月13日 0 点赞 0 评论 1087 浏览 评分: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 评论 2456 浏览 评分: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 评论 1126 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.12 (C语言代码)思路清晰,代码工整!从a链表中删去b链表中有相同学号的那些节点 摘要:参考代码如下:#include <stdio.h> #include <stdlib.h> //定义一个学生结构体 typedef struct Student { int i…… 题解列表 2018年04月13日 1 点赞 1 评论 1194 浏览 评分: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 评论 2134 浏览 评分:9.9
优质题解 Manchester- 查找最小的k个元素 摘要:解题思路:①:输入n,k②:输入n个数③:使用合并排序把序列从小到大排序④:输出下标为0到k-1的数注意事项:即便最小的k个数中有重复的也要输出,不能重复的只输出一遍如输入 n=8 k=4 1…… 题解列表 2018年04月12日 7 点赞 0 评论 2709 浏览 评分:6.0
弟弟的作业 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[20]; int answer=0; while(scanf("%s",&…… 题解列表 2018年04月12日 0 点赞 0 评论 1397 浏览 评分:0.0