求两个集合交集 (C语言代码) 摘要:解题思路: 先将集合A、B的元素升序排列,然后使用i,j两指针逐个比对集合A、B的元素取交集,结果也为升序。 示意图:(求交集C) 参考代码:#include<stdio.h> …… 题解列表 2018年08月22日 2 点赞 0 评论 3834 浏览 评分:9.9
C二级辅导-同因查找 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; for(n=10;n<=1000;n++) { if(n%2==0&&n%3==0&&n%7==0…… 题解列表 2018年08月22日 0 点赞 0 评论 1024 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=2,s=2; int n,i; scanf("%d",&n); for(i=1;i<n;i++) {…… 题解列表 2018年08月22日 0 点赞 0 评论 1172 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s=0,i,n; int a[100]; scanf("%d\n",&n); for(i=0;i<n;i…… 题解列表 2018年08月22日 0 点赞 0 评论 1088 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(double n){double a=1; for(int i=1;i<=n;i…… 题解列表 2018年08月22日 0 点赞 0 评论 1752 浏览 评分:0.0
【明明的随机数】 (C语言代码)冒泡排序后去重 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>void fun(int a[],int m){ int i,j,t,l,q,k; for(i=0…… 题解列表 2018年08月22日 0 点赞 0 评论 2428 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>float fenduan(float x){ float y; if(x<1) y=x; else if(x>=1&&x<10) …… 题解列表 2018年08月22日 0 点赞 0 评论 1413 浏览 评分:0.0
迷宫问题 (C语言代码) 摘要:参考代码:#include<stdio.h> // 最大行列数 #define MAXRCS 100 #define MAXVAL 0xffff int map[MAXRCS][MAX…… 题解列表 2018年08月22日 1 点赞 1 评论 2976 浏览 评分:9.9
蓝桥杯算法提高VIP-洗牌 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int cov(char ch) { if (ch == 'K') re…… 题解列表 2018年08月22日 0 点赞 0 评论 2813 浏览 评分:5.5
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> in mian() { int a,b,m=0; whil…… 题解列表 2018年08月22日 0 点赞 0 评论 799 浏览 评分:0.0