写着玩的,怕忘了 摘要:#include<stdio.h>void datastart(char * dna,int A) { for(int i = 0 ;i < A - 1; i++ ) dna[i] = '…… 题解列表 2020年09月09日 0 点赞 0 评论 1277 浏览 评分:0.0
[编程入门]自定义函数之整数处理-题解(C语言代码) 解题思路:这道题过这个oj很简单,但是想弄明白不简单,我的思路是:两个特殊数字(最大,最小),三种位置(数组首,数组中,数组末)一共会有六种情况,每种情况都要单独列出。注意事项:参考代码:#include#includevoidswap(int*a, 题解列表 2020年09月09日 0 点赞 0 评论 660 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int a,b; while((scanf("%d%d",&a,&b))!…… 题解列表 2020年09月10日 0 点赞 0 评论 851 浏览 评分:0.0
A+B for Input-Output Practice (IV)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n; while((scanf("%d",&n))!=EOF) {…… 题解列表 2020年09月10日 0 点赞 0 评论 857 浏览 评分:0.0
A+B for Input-Output Practice (V)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,m,a[100]; scanf("%d",&n); for(i…… 题解列表 2020年09月10日 0 点赞 0 评论 778 浏览 评分:0.0
A+B for Input-Output Practice-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,m,a[100]; scanf("%d",&n); whil…… 题解列表 2020年09月10日 0 点赞 0 评论 1159 浏览 评分:0.0
用筛法求之N内的素数。 -题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstring>#define maxb 1000000using namespace std;bool pan[…… 题解列表 2020年09月10日 0 点赞 0 评论 995 浏览 评分:0.0
蓝桥杯2013年第四届真题-大臣的旅费-题解(C++代码) 解题思路:1.构建图2.dijkstra从任意一个点出发,找到距离这个点最远的点,再从这个点出发,找到一条最长的路3.根据路的长度求出旅费为什么要找到某个点的最远点?而不是从任意的边缘的某个点为起点直接寻找最长路?如图:假如随便找一个边缘的点为起点, 题解列表 2020年09月10日 0 点赞 0 评论 1235 浏览 评分:0.0
密码-题解(C语言代码)傻瓜写法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char *code);int main (){ char code[100]…… 题解列表 2020年09月10日 0 点赞 0 评论 1124 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C语言代码) 摘要:解题思路:用一个与原数组等长的数组分成两部分(0到n-m-1和n-m到n-1)重新装入原数组的数据。注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int…… 题解列表 2020年09月10日 0 点赞 0 评论 746 浏览 评分:0.0