回文判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(void){ int length, i, j; int sign =…… 题解列表 2019年02月16日 0 点赞 0 评论 1058 浏览 评分:0.0
采药 (C语言代码) 摘要:解题思路:动态规划,和分苹果一样的,这里的草药先用苹果代替了,偷下懒。注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { …… 题解列表 2019年02月16日 1 点赞 0 评论 977 浏览 评分:2.0
无脑暴力QWQ,欧拉函数 (C语言代码) 摘要:#include <stdio.h> int gcd(int a,int b){ int t; if(a%b == 0) return b; gcd(b,a%b); }…… 题解列表 2019年02月16日 0 点赞 0 评论 1717 浏览 评分:9.9
日期换算 (C语言代码)用数组,超简单 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int x, y, i; int date = 0; int month[13] = …… 题解列表 2019年02月16日 1 点赞 0 评论 905 浏览 评分:6.0
计算数字个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<ctype.h>int main(void){ char ch; int count = 0; wh…… 题解列表 2019年02月16日 0 点赞 0 评论 1026 浏览 评分:0.0
求中间数 (C语言代码)使用带参数的宏来完成 摘要:解题思路:对于一些简单的函数,常常可以使用宏来代替函数 (x>y?x:y)选出x和y中较大者;(x>z?x:z)选出x和z中较大者;这两个较大数中较小者即中间数注意事项:注…… 题解列表 2019年02月16日 1 点赞 2 评论 659 浏览 评分:0.0
边长判断 (C语言代码)超好懂 摘要:解题思路: (a>b?a:b)>(a>c?a:c)?(a>b?a:b):(a>c?a:c)选出最大值,即为斜边。斜边的平方=直角边1的平方+直角边2的平方,但是不知道谁是斜边谁是直角边。就用这种方法:…… 题解列表 2019年02月16日 0 点赞 0 评论 1697 浏览 评分:9.9
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int b; scanf("%[^\n]s",a)…… 题解列表 2019年02月16日 0 点赞 0 评论 678 浏览 评分:0.0
画三角形 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int z,i,j; while(scanf("%d",&a)!=EOF) { …… 题解列表 2019年02月16日 0 点赞 1 评论 614 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)简单易懂的方法哦 摘要:解题思路:定义一个结构体模板,先判断是闰年还是平年,然后再分别赋值注意事项:参考代码:#include<stdio.h>struct Date { int month; int days;};int …… 题解列表 2019年02月16日 0 点赞 0 评论 923 浏览 评分:0.0