[编程入门]三个数字的排序 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<b&&b<c)printf…… 题解列表 2022年03月04日 0 点赞 0 评论 331 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:还是正常的宏定义流程,记得带上所需的头文件。注意事项:理论上s应该定义成float型,因为可能是小数,如果输入6 7 8的话s就会算成10了,但这么写还是通过了,说明这题的check poi…… 题解列表 2022年03月04日 0 点赞 0 评论 1338 浏览 评分:9.9
求和练习(用循环求解) 摘要:注意事项:i要定义成浮点数,否则当i=2时,1/i=0;会对结果造成误差参考代码:#include<stdio.h>int main(){ int a,b,c; float i; d…… 题解列表 2022年03月04日 0 点赞 0 评论 322 浏览 评分:0.0
1917: 蓝桥杯算法提高VIP-快乐司机 摘要:- 思路 - 设比率ratio = pi / gi - 然后对ratio排序, - 把较大的ratio所对应的pi依次累加即为答案 - 代码 ``…… 题解列表 2022年03月04日 0 点赞 0 评论 587 浏览 评分:0.0
递归法求解 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args) {…… 题解列表 2022年03月04日 0 点赞 0 评论 363 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 373 浏览 评分:0.0
C++ 动态规划 摘要:解题思路:将每条蓝肽序列的子序列存入字符串数组中,将问题化为寻找最长公共子序列问题注意事项:参考代码: #include<iostream> #include<string> #include…… 题解列表 2022年03月04日 0 点赞 0 评论 545 浏览 评分:9.9
题解 2226: 蓝桥杯算法训练-排序(C语言——三目运算符求解) 摘要: #include #include #include int main() { int m,n,k,max,mid,min; scanf("%d %d …… 题解列表 2022年03月04日 0 点赞 0 评论 467 浏览 评分: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 评论 398 浏览 评分:9.9
1463: 蓝桥杯基础练习VIP-Sine之舞 C++头疼的递归 摘要:解题思路:递归嵌套,关键只是要看懂题目给出的公式到底是什么东西(给的数据真的很难猜啊)注意事项: A1= sin(1) A2 = sin(1-sin(2)) …… 题解列表 2022年03月04日 0 点赞 0 评论 418 浏览 评分:0.0