1917: 蓝桥杯算法提高VIP-快乐司机 摘要:- 思路 - 设比率ratio = pi / gi - 然后对ratio排序, - 把较大的ratio所对应的pi依次累加即为答案 - 代码 ``…… 题解列表 2022年03月04日 0 点赞 0 评论 613 浏览 评分:0.0
递归法求解 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args) {…… 题解列表 2022年03月04日 0 点赞 0 评论 410 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 391 浏览 评分:0.0
C++ 动态规划 摘要:解题思路:将每条蓝肽序列的子序列存入字符串数组中,将问题化为寻找最长公共子序列问题注意事项:参考代码: #include<iostream> #include<string> #include…… 题解列表 2022年03月04日 0 点赞 0 评论 578 浏览 评分:9.9
题解 2226: 蓝桥杯算法训练-排序(C语言——三目运算符求解) 摘要: #include #include #include int main() { int m,n,k,max,mid,min; scanf("%d %d …… 题解列表 2022年03月04日 0 点赞 0 评论 496 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max 101 int n,m,a[max][max],x,y,k; char s; int X[5]={0,…… 题解列表 2022年03月04日 0 点赞 0 评论 439 浏览 评分:9.9
1463: 蓝桥杯基础练习VIP-Sine之舞 C++头疼的递归 摘要:解题思路:递归嵌套,关键只是要看懂题目给出的公式到底是什么东西(给的数据真的很难猜啊)注意事项: A1= sin(1) A2 = sin(1-sin(2)) …… 题解列表 2022年03月04日 0 点赞 0 评论 453 浏览 评分:0.0
字符串的查找删除-题解(C++代码)(不知为何检查不多,有没有大佬帮忙解决一下) 摘要:#include <iostream> #include <string> using namespace std; string upper_string(string s) { for …… 题解列表 2022年03月04日 0 点赞 0 评论 454 浏览 评分:0.0
1037: [编程入门]宏定义的练习 摘要:解题思路:和上一题一样,主要是为了练习宏定义的格式。注意事项:无,甚至不用写注释。参考代码:#include <iostream> #define REMAINDER(num1, num2) (…… 题解列表 2022年03月04日 0 点赞 1 评论 677 浏览 评分:9.9
自定义函数 摘要:```cpp #include using namespace std; double fact(int n){ double a,b=1.0; for(a=1;ax>>n; fo…… 题解列表 2022年03月04日 0 点赞 0 评论 369 浏览 评分:0.0