蓝桥杯专题系列-1821(Python) 摘要:解题思路:模拟题注意事项:注意数据类型间的转化参考代码:n, m = map(int, input().split())low, high = int(pow(n, 0.5)), int(pow(m,…… 题解列表 2023年03月19日 0 点赞 0 评论 187 浏览 评分:9.9
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#define Area(S,a,b,c) sqrt(S*(S-a)…… 题解列表 2023年03月19日 0 点赞 0 评论 176 浏览 评分:0.0
#C++1841——蓝桥杯2017年第八届真题-发现环 摘要:解题思路:因为是从1开始构造,就无需排序啦*******************************参考代码:#include <iostream> using namespace std; …… 题解列表 2023年03月19日 0 点赞 0 评论 291 浏览 评分:0.0
最小三个数 摘要:解题思路:先从小到大排序 ,在输出使用冒泡排序参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i,j,t;…… 题解列表 2023年03月19日 0 点赞 0 评论 225 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并(c语言) 摘要: #include typedef struct student{ int id; int greed; struct student *next; }node;…… 题解列表 2023年03月18日 0 点赞 0 评论 207 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间(C代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int main(){ int n,k,i; scanf("%d%d",&n,&k); …… 题解列表 2023年03月18日 0 点赞 0 评论 257 浏览 评分:0.0
就栈的基本应用 有解析 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n; char a; while(cin >> …… 题解列表 2023年03月18日 0 点赞 0 评论 273 浏览 评分:0.0
【蓝桥杯】背包问题--DP动态规划入门 摘要:解题思路:DP动态规划的思路就是:在有 K 件物品(每个物品都有自己的重量与价值,记为w[i]、v[i])、背包容量为 W 时可以获取的最大价值,对于这种情况可以记为 f(K,W),值为可以获取的最大…… 题解列表 2023年03月18日 1 点赞 0 评论 408 浏览 评分:9.9
蓝桥杯基础练习-报时助手 简单易懂 C++代码 摘要:解题思路: 0,1,2,3,4,...,20对应的英文字符串刚好可以使用string数组进行存储索引。然后将20,30,40,50在存储一个字符数组,最后对h和m进行判断输出即可。注意事项: …… 题解列表 2023年03月18日 0 点赞 0 评论 275 浏览 评分:9.9
数字三角形-java-动态规划 摘要:解题思路: “向左下走的次数与向右下走的次数相差不能超过 1”,所以你无论怎么走,终点都必定落在最后一行的中间位置 最后一行是偶数行,那就是落在中间两个数 奇数行,那…… 题解列表 2023年03月18日 0 点赞 0 评论 309 浏览 评分:9.9