Benjam1n:蓝桥杯2019年第十届省赛真题-等差数列(Java代码) 摘要:解题思路:注意事项:1、第一个坑是只有1个数2、第二个坑是会有公差=0的数据(第82个)记得特殊处理。参考代码:public static long gcd(long a,long b) { re…… 题解列表 2022年01月26日 0 点赞 0 评论 799 浏览 评分:9.9
2061: [STL训练]周瑜的反间计 C++实现 摘要:解题思路:跟着题走就好注意事项:首先是多组数据直到-1为止,其次要注意每组数据后面有一个空格参考代码:#include<iostream>#include<vector>#include<algori…… 题解列表 2022年01月26日 0 点赞 0 评论 621 浏览 评分:9.9
[编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int n);int main(){ int n; scanf("%d",&n); fun(n); return 0;}…… 题解列表 2022年01月26日 0 点赞 0 评论 466 浏览 评分:9.9
Benjam1n:蓝桥杯2019年第十届省赛真题-特别数的和(Java代码)(正则表达式) 摘要:解题思路:正则参考代码:public static void main(String[] args) { Scanner in = new Scanner(System.in); int N …… 题解列表 2022年01月26日 0 点赞 0 评论 470 浏览 评分:9.9
Benjam1n:蓝桥杯2020年第十一届省赛真题-成绩统计(Java代码) 摘要:解题思路:模拟注意事项:无参考代码:public static void main(String[] args) { Scanner in = new Scanner(System.in); …… 题解列表 2022年01月26日 0 点赞 2 评论 606 浏览 评分:9.9
python-快乐司机 摘要:解题思路:①算出每个物品的平均价格②按照平均价格降序对物品排序③按照排序后的物品顺序开始装载物品。装载物品时分为两种情况第一种情况:物品的重量 < 货车剩余可装载的重量 …… 题解列表 2022年01月26日 0 点赞 0 评论 677 浏览 评分:9.9
python代码 简要 摘要:解题思路:用公式注意事项:要比较x1,x2大小,不能单纯认为分子有+的一定大参考代码:a,b,c=map(float,input().strip().split())x1=(-1*b+pow(b*b-…… 题解列表 2022年01月26日 0 点赞 0 评论 446 浏览 评分:9.9
剪格子(DFS+回溯+剪枝) 摘要:```cpp #include #include using namespace std; int n, m; int maze[10][10]; int vis[10][10]; in…… 题解列表 2022年01月27日 0 点赞 1 评论 987 浏览 评分:9.9
按部就班--计算器 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; char op; doub…… 题解列表 2022年01月27日 0 点赞 0 评论 528 浏览 评分:9.9