![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
蓝桥杯
Baal Austin
愿温柔待以岁月,愿孤独忘之流年
展开
-
蓝桥杯练习BASIC-14 时间转换
题目大意完整代码#include<cstdio>#include<iostream>#include<cstring>#include<cmath>#include<algorithm>using namespace std;int main() { int t; cin >> t; int h = t...原创 2020-03-29 14:29:33 · 112 阅读 · 0 评论 -
蓝桥杯练习BASIC-15 字符串对比
题目大意完整代码/*strcmp(char* s1, char*s2)区分大小写比较函数stricmp(char* s1, char*s2)不区分大小写比较函数*/#include<cstdio>#include<iostream>#include<cstring>#include<cmath>#include<algor...原创 2020-03-29 14:12:54 · 170 阅读 · 0 评论 -
蓝桥杯练习BASIC-16 分解质因数
题目大意完整代码#include<cstdio>#include<iostream>#include<cstring>#include<cmath>#include<algorithm>#include<vector>using namespace std;int main() { int n, m; ...原创 2020-03-29 13:59:23 · 170 阅读 · 0 评论 -
蓝桥杯练习BASIC-17 矩阵乘法
题目大意点击进入题目完整代码#include<iostream>#include<cstdio>#include<cstring>#define N 30using namespace std;int main() { int A[N][N],B[N][N],C[N][N]; int n, m; while (cin >> ...原创 2020-03-22 16:14:15 · 165 阅读 · 0 评论 -
蓝桥杯练习BASIC-18 矩形面积交
题目大意点击进入题目完整代码#include<iostream>#include<cstdio>#include<cstring>#include<cmath>#include <iomanip>using namespace std;int main() { double x1, y1, x2, y2, x3, y...原创 2020-03-22 17:48:48 · 162 阅读 · 0 评论 -
蓝桥杯练习BASIC-19 完美的代价
题目大意完整代码#include<iostream>#include<cstdio>#include<cstring>#include<cmath>#include<vector>using namespace std;int main01() { int n; cin >> n; getchar();...原创 2020-03-23 13:50:05 · 158 阅读 · 0 评论 -
蓝桥杯练习BASIC-20 数的读法
题目大意点击进入题目完整代码#include<iostream>#include<cstdio>using namespace std;int main() { string str1[] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" }; string str2[] = { "",...原创 2020-03-23 18:48:19 · 142 阅读 · 0 评论 -
蓝桥杯练习BASIC-21 Sine之舞
题目大意完整代码/*A1=sin(1)A2=sin(1-sin(2))A3=sin(1-sin(2+sin(3)))A4=sin(1-sin(2+sin(3-sin(4))))A5=sin(1-sin(2+sin(3-sin(4+sin(5))))) 规律如下:An = A[n - 1].substr(0, A[n - 1].length() - n + 1) + s + A[...原创 2020-03-29 13:28:48 · 138 阅读 · 0 评论 -
蓝桥杯练习BASIC-22 FJ的字符串
题目大意完整代码/*规律:上一个字符串复制后中间夹一个新字符1.a2.A B A3.ABA C ABA*/#include<iostream>#include<cstdio>#include<string>#include<cstdlib>using namespace std;string str[27];void f...原创 2020-03-26 19:10:21 · 120 阅读 · 0 评论 -
蓝桥杯练习BASIC-23 芯片测试
题目大意完整代码#include<iostream>#include<cstdio>#include<string>#include<cstdlib>#include <vector>using namespace std;/*只要判断每个器件被其他器件检查正确的次数是否大于等于一半为完好器件*/int main(...原创 2020-03-26 19:01:48 · 156 阅读 · 0 评论 -
蓝桥杯练习BASIC-24 龟兔赛跑预测
题目大意# 完整代码#include<iostream>#include<cstdio>using namespace std;int main(){ int v1,v2,t,s,l;//v1兔子速度,v2乌龟速度,t距离,s兔子休息时间,l总路程 cin >> v1 >> v2 >> t >> s >&g...原创 2020-03-29 12:47:13 · 119 阅读 · 0 评论 -
蓝桥杯练习BASIC-25 回形取数
题目大意完整代码#include<iostream>#include<cstdio>#include<vector>using namespace std;int main(){ int n,m; cin >> n >> m; vector<vector<int> >vec(n,vector&l...原创 2020-03-29 12:29:50 · 86 阅读 · 0 评论 -
蓝桥杯练习BASIC-26 报时助手
题目大意完整代码#include<iostream>#include<cstdio>using namespace std;int main(){ //将0-60的英文全部存入数组 string time[60]={"zero","one","two","three","four","five","six","seven","eight","nine","t...原创 2020-03-29 12:21:26 · 116 阅读 · 0 评论 -
蓝桥杯练习BASIC-27 2n皇后问题
题目大意完整代码#include<cstdio>#include<iostream>#include<cstring>#include<cmath>#include<algorithm>#include<vector> using namespace std;int ans = 0;vector<i...原创 2020-03-30 20:44:23 · 213 阅读 · 0 评论 -
蓝桥杯练习BASIC-28 Huffuman树
问题描述完整代码使用数组操作#include<cstdio>#include<iostream>#include<cstring>#include<cmath>#include<algorithm>#include<vector> using namespace std;int main(){ int ...原创 2020-04-01 11:42:13 · 128 阅读 · 0 评论 -
蓝桥杯练习BASIC-29 高精度加法
题目大意完整代码#include<iostream>#include<cstdio>using namespace std;int main() { string num1, num2; cin >> num1 >> num2; int i = num1.length() - 1, j = num2.length() - 1; i...原创 2020-03-23 13:55:58 · 116 阅读 · 0 评论 -
蓝桥杯练习BASIC-30 阶乘计算
大数阶乘题目链接#include<iostream>#include<cstdio>#include<vector>using namespace std;#define N 10005vector<int> factorial[N];void fac(int n) {//核心代码 int len = factorial[n - ...原创 2020-03-22 15:18:14 · 313 阅读 · 0 评论