C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:要用公式推就可以了。注意事项:要加c=参考代码:#include<stdio.h>int main(){ float a,b; scanf("%f",&a); b=5*(a…… 题解列表 2018年02月11日 0 点赞 0 评论 1326 浏览 评分:0.0
邮局选址问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,maxx=-9999,maxy=-9999,minx=9999,mi…… 题解列表 2018年02月11日 0 点赞 0 评论 2434 浏览 评分:6.0
假币问题 (C语言代码) 摘要:解题思路:/* 将硬币平均分成三堆:A,B,C,若不能平分,则需保证A,B两堆必须数目相同,且A,B的数量要比C多, 其中AB用于称重比较 对于一次称重,若A == B,则假币在C,若A != …… 题解列表 2018年02月11日 9 点赞 0 评论 5466 浏览 评分:9.6
字符串的输入输出处理 (C语言代码) 摘要:解题思路:前N行原样输出即可,后面的字符可用scanf("%s",a)来自动切割字符串(因为scanf遇到空格键自动结束输入),然后输出注意事项:注意格式!每输出一行要再空一行!参考代码:#inclu…… 题解列表 2018年02月10日 1 点赞 0 评论 1793 浏览 评分:0.0
蓝桥杯历届试题-兰顿蚂蚁 (C语言代码) 摘要:解题思路:将移动规则自定义成一个函数,再进行k次循环即可。注意事项:参考代码:#include<stdio.h> int a[102][102]; void go(int *x,int *y,ch…… 题解列表 2018年02月10日 1 点赞 0 评论 2065 浏览 评分:0.0
日期排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct p{ int a,b,c;}s[1000],t;int main(){ char ss[20]; int i,j,k,…… 题解列表 2018年02月10日 0 点赞 0 评论 1875 浏览 评分:0.0
数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; int a[9],t; scanf("%d",&n); while(n--) { t=0…… 题解列表 2018年02月10日 0 点赞 0 评论 1936 浏览 评分:0.0
密码截获 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int max;int p(char *s,int k,int end){ int i,j; i=…… 题解列表 2018年02月10日 3 点赞 0 评论 2049 浏览 评分:6.0
字符排列问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int n,sum;char s[21];int b[21];void dfs(int k){ int i,j; if(k>n) { …… 题解列表 2018年02月10日 1 点赞 0 评论 1880 浏览 评分:0.0
字符串的修改 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int book[201][201];int main(){ char a[201],b[201];…… 题解列表 2018年02月10日 0 点赞 1 评论 2298 浏览 评分:4.7