[编程入门]自定义函数之字符类型统计 (C语言代码)。。。来看看 摘要:解题思路:简单注意事项:无参考代码:#include<stdio.h>#include<string.h>#define N 100int a,b,c,d;void fun(char sa[N]){ …… 题解列表 2019年05月01日 0 点赞 0 评论 850 浏览 评分:0.0
[编程入门]带参数宏定义练习 (C语言代码)。。。。。 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#define N(x,y) t=x;x=y;y=t;int main(){ int x,y,t; scanf("%d%d",&x,…… 题解列表 2019年05月01日 0 点赞 0 评论 681 浏览 评分:0.0
[编程入门]宏定义的练习 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N(x,y) t=x%y;int main(){ int x,y,t; scanf("%d%d",&x,&y); N(x…… 题解列表 2019年05月01日 0 点赞 0 评论 683 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码)。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S s=(a+b+c)/2.0;#define AREA area=sqrt(s*(s-…… 题解列表 2019年05月01日 0 点赞 0 评论 616 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C语言代码)。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define run if(y%4==0&&y%100!=0||y%400==0) printf("L"); else printf(…… 题解列表 2019年05月01日 0 点赞 0 评论 702 浏览 评分:0.0
[编程入门]实数的打印 (C语言代码)无语的正确率。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x; int i,j; scanf("%f",&x); for(i=1;i<=3;i++) { f…… 题解列表 2019年05月01日 0 点赞 0 评论 779 浏览 评分:0.0
高级方法求素数!!!!!!C语言训练-素数问题 (C语言代码) 摘要:解题思路:从2开始到n测试每一个数看是否为素数;一个数的因数不会大于他的一半;注意事项:内层循环要用j<=i+1,才会正确判断2是否为素数参考代码:#include<stdio.h>int main(…… 题解列表 2019年05月01日 1 点赞 0 评论 1359 浏览 评分:0.0
三角形 (C++代码) 摘要:解题思路:动态规划,贪心不能得到最大解注意事项:三维数组提高解题效率参考代码:#include<bits/stdc++.h> #define N 50 using namespace std; …… 题解列表 2019年05月01日 1 点赞 0 评论 838 浏览 评分:0.0
简单的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100]; int i,m,k,t; while(scanf("%d",&m…… 题解列表 2019年05月02日 0 点赞 0 评论 794 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int s = 0;int f(int n){ int x, y; if(n <= 1) return s; …… 题解列表 2019年05月02日 0 点赞 0 评论 449 浏览 评分:0.0