蓝桥杯2022年第十三届省赛真题-全排列的价值(python) 摘要:## 一组逆序、顺序全排列价值和为定值n*(n-1)/2 ## 一共n!/2组全排列(n!种) 参考代码: ## 全排列的价值 n=int(input()) s=n*(n-1)/4 for…… 题解列表 2024年04月05日 0 点赞 0 评论 769 浏览 评分:9.9
c++利用数组记录路径 摘要:解题思路:使用一个bool已经dfs来判断环上点的位置,详细的看代码上的注释注意事项:参考代码:#include<bits/stdc++.h>#define DZT ios::sync_with_st…… 题解列表 2024年04月05日 0 点赞 0 评论 425 浏览 评分:0.0
题解 2825: 计算多项式的值 (记录本题另一种计算结果精度损失的计算方式) 摘要:```c #include int main() { int i,j,n; double x,count=1.0,count_part; scanf("…… 题解列表 2024年04月05日 0 点赞 1 评论 369 浏览 评分:0.0
2814: 正常血压 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,spring=0,summer…… 题解列表 2024年04月05日 0 点赞 0 评论 527 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 312 浏览 评分:0.0
2813: 药房管理 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,sum=0; cin>>a>>b…… 题解列表 2024年04月05日 0 点赞 0 评论 440 浏览 评分:9.9
题解 1234: 检查一个数是否为质数 摘要:解题思路:额…………注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int mai…… 题解列表 2024年04月05日 0 点赞 0 评论 377 浏览 评分:0.0
这是一个题解 摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { int n; scanf("%d", &n)…… 题解列表 2024年04月05日 0 点赞 0 评论 343 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-最大公约数 摘要:解题思路:我们需要找最小次数去得到 1,有 1之后顺着就可以把所有数变成 1,可以通过线段树维护区间最大公约数,然后通过二分求解最小次数注意事项:参考代码:import java.util.*;cla…… 题解列表 2024年04月05日 0 点赞 1 评论 658 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:import math N = int(input()) arr = [True] * (N + 1) for i in range(2, int(math.sqr…… 题解列表 2024年04月05日 0 点赞 0 评论 345 浏览 评分:0.0