简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码#include <stdio.h> int main (void) { int a; int b; scanf ("%d%d",&a,&b); p…… 题解列表 2018年04月04日 0 点赞 0 评论 738 浏览 评分:0.0
11行代码就解决问题,觉得行的顺手点个赞呗 摘要:#include<stdio.h> #include<string.h> int main() { int i; char a[3]; gets(a); for(i=0;i<4;i++)…… 题解列表 2018年04月04日 2 点赞 0 评论 1144 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,m; scanf("%d%d%d",&a,&b,&c); m = (a>b?a:b)>c?(…… 题解列表 2018年04月04日 0 点赞 0 评论 759 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:规律注意我奇偶数情况合并了注意事项:参考代码:#include<stdio.h> int main(){ int n; do { scanf…… 题解列表 2018年04月04日 0 点赞 0 评论 862 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int input , i; scanf("%d",&input); for( i = 2 ; i …… 题解列表 2018年04月04日 0 点赞 0 评论 711 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct Lnode{ int no; int num; …… 题解列表 2018年04月04日 0 点赞 0 评论 1075 浏览 评分:0.0
采药 (C语言代码) 摘要:解题思路:这道题提交了好多次都失败了,刚开始想当然地用贪心算法,后来发现错了又用回溯法,但是运行超时,最后采用动态规划顺利解决。这题的解题思路及方法其他题解已经讲得很清楚了。所以此文章仅仅是为了记下自…… 题解列表 2018年04月04日 0 点赞 0 评论 1484 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int isprime(int x){ if(x==1)//别忘了1不是素数 ret…… 题解列表 2018年04月04日 0 点赞 0 评论 1346 浏览 评分:0.0
C二级辅导-进制转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>eight(int n){ if(n>=8){ eight(n/8);//先执行循环体,在执行printf,但是n并…… 题解列表 2018年04月04日 0 点赞 0 评论 1126 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:一定要记住,在float,或者double时,用 / 需要加.0 即:float c= 5/9; wrong; &n 题解列表 2018年04月04日 0 点赞 0 评论 948 浏览 评分:0.0