蓝桥杯2023年第十四届省赛真题-子串简写(C语言)此方法为暴力解法 摘要:解题思路:此方法为暴力解法,所以只考虑拿部分分数,只过百分之20的数据,直接模拟算法过程就可以注意事项:参考代码:#include <stdio.h>#include <string.h>signed…… 题解列表 2024年03月01日 0 点赞 0 评论 943 浏览 评分:6.0
石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,na,nb; cin >> n >> na >>…… 题解列表 2024年03月03日 0 点赞 0 评论 358 浏览 评分:6.0
归并排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e5 + 10; int arr[N],tmp[N],…… 题解列表 2024年03月03日 0 点赞 0 评论 544 浏览 评分:6.0
蓝桥杯2023年第十四届省赛真题-飞机降落(dfs) 摘要:``` #include using namespace std; const int N=20; //进行dfs,把每一种可能发生的情况都列出 int n; bool f[N]={0}…… 题解列表 2024年03月04日 0 点赞 0 评论 487 浏览 评分:6.0
平方差python解 摘要:解题思路:只有当x为奇数或4的倍数时才能拆分为两个数的平方差。注意事项:x-(x//2)求奇数的个数x//4求4的倍数的个数为了计算范围 [L, R] 内满足条件的数目,减去 f(L-1) 的目的是排…… 题解列表 2024年03月05日 0 点赞 1 评论 560 浏览 评分:6.0
1037: [编程入门]宏定义的练习(Python) 摘要:解题思路:自定义函数注意事项:区分算数运算符的运用:/ 除 60/10 6 % 取余 10%9 1 参考代码:def much_1(a,b): …… 题解列表 2024年03月11日 0 点赞 0 评论 385 浏览 评分:6.0
用for放高度 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int i=0; int apple=0; int hig[10]; int sh; for(;i<10;i+…… 题解列表 2024年03月11日 0 点赞 0 评论 246 浏览 评分:6.0
python 2800: 多边形内角和 摘要:参考代码:n = int(input()) aaa = map(int, input().split()) print((n - 2) * 180 - sum(aaa))…… 题解列表 2024年03月12日 0 点赞 0 评论 455 浏览 评分:6.0
python 2805: 乘方计算 摘要:注意事项:参考代码:a, n = map(int, input().split()) print(a**n)…… 题解列表 2024年03月13日 0 点赞 0 评论 444 浏览 评分:6.0
题目 1168: 简单计算(先数学计算,递推得结论,然后再做题) 摘要:解题思路:注意事项:参考代码:1.列出基本递推关系式子:a[1] = (a[0] + a[2]) /2- c[1]a[2] = (a[1] + a[3]) /2- c[2]a[3] = (a[2] +…… 题解列表 2024年03月13日 2 点赞 0 评论 459 浏览 评分:6.0