蓝桥杯2014年第五届真题-排列序数 (C++代码) 摘要:解题思路:朋友,买挂吗?注意事项:挂虽然好,但是还是不能太暴力,第一次内存时间双超...就别先全排出来再find了,太浪费了...边排边比对,对上就输出吧...参考代码:#include <iostr…… 题解列表 2018年10月12日 0 点赞 0 评论 787 浏览 评分:0.0
蓝桥杯算法提高VIP-计算质因子 (C语言代码) 摘要:解题思路:注意事项:质因数!质因数!还要求一下质数(素数)参考代码:#include<stdio.h>int sushu(int n){ int i; for(i=2;i*i<=n;i++…… 题解列表 2018年10月12日 3 点赞 0 评论 742 浏览 评分:0.0
三进制小数 (C语言代码) 摘要:#include<stdio.h> #include<memory.h> const int base = 3; int main(){ int a, b; int …… 题解列表 2018年10月12日 1 点赞 0 评论 742 浏览 评分:0.0
蓝桥杯算法提高VIP-淘淘的名单 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void print_str(char str []){ if(strcmp(str, "WY…… 题解列表 2018年10月12日 4 点赞 0 评论 2238 浏览 评分:9.9
矩阵转置 (C++代码) 摘要:解题思路: 原本得输出a[i][j],使其反过来输出a[j][i]即可参考代码:#include<iostream>#include<algorithm>#include<cma…… 题解列表 2018年10月12日 0 点赞 0 评论 873 浏览 评分:9.5
【计算球体积】 (C语言代码) 摘要:#include<stdio.h> #include<math.h> const double PI = acos(-1); int main(){ double r; …… 题解列表 2018年10月12日 0 点赞 0 评论 1252 浏览 评分:0.0
【计算两点间的距离】 (C语言代码) 摘要:#include<stdio.h> #include<math.h> int main(){ double x1, y1, x2, y2; while(scanf("%lf…… 题解列表 2018年10月12日 0 点赞 0 评论 931 浏览 评分:0.0
【蟠桃记】 (C语言代码) 摘要:#include<stdio.h> int main(){ int n; while(scanf("%d", &n) != EOF){ int num = …… 题解列表 2018年10月12日 0 点赞 0 评论 823 浏览 评分:0.0
Mark11:sort()函数 摘要:#include<cstdio> #include<cmath> #include<algorithm> using namespace std; bool cmp(int a, in…… 题解列表 2018年10月12日 1 点赞 0 评论 719 浏览 评分:2.0
Mark:不够简洁的代码 摘要:解题思路:/* ** 这题中,我将任务分成了4个模块以及调用它们(其中3个)的循环框架: ** 1.str2num:将用户输入的k进制数(采用了以字符串的形式储存,因为可能输入A、a等字符)转换成整型…… 题解列表 2018年10月12日 1 点赞 0 评论 854 浏览 评分:0.0