Jayden-[解释通俗易懂,一看就会! ] 自定义函数之通用位移 摘要:解题思路:在move函数中根据n的正负来决定value是左移还是右移: n >= 0: 右移。使用>>运算符将value右移n位,并使用<< 运算符将value左移bits-n位,最后将两个结…… 题解列表 2024年04月02日 1 点赞 0 评论 790 浏览 评分:9.9
2838: 有趣的跳跃 python (正确运行,简单易懂) 摘要:解题思路:注意事项:参考代码:import mathlistB = []listC = []listA = list(map(int,input().split()))n = listA.pop(0)…… 题解列表 2024年04月02日 1 点赞 0 评论 711 浏览 评分:9.5
高级无磨损 崭新出厂 摘要:解题思路:注意事项:可以把成绩定义成int型参考代码:#include <stdio.h>struct Student{ char num[20]; char name[20]; float scor…… 题解列表 2024年04月02日 0 点赞 0 评论 368 浏览 评分:9.9
2825: 计算多项式的值 摘要:解题思路:由题目可知,该多项式是等比数列之和,因此我们要找到他的通项公式通项公式为:a n =a的1次方*x的n-1次方注意事项:参考代码:#include<stdio.h> int main(){…… 题解列表 2024年04月02日 0 点赞 0 评论 404 浏览 评分:0.0
python (超时参考,73通过)(官网好像AC了) 摘要:解题思路: 主要是贪心思路(先进行排序) (个人比较菜会超时,如果有小伙伴知道怎么解决请不吝赐教) 注意事项: 参考代码: ##平均 import sys sys.set…… 题解列表 2024年04月02日 0 点赞 0 评论 464 浏览 评分:7.0
蓝桥杯2013年第四届真题-带分数 摘要:解题思路:使用全排列函数枚举,后枚举三个数的位数,计算一遍a+b/c就好注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int mai…… 题解列表 2024年04月02日 0 点赞 0 评论 302 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-子串简写 摘要:解题思路:注意事项:参考代码:常人思路(超时)#include <bits/stdc++.h> using namespace std;int K;long long ans=0;string S;c…… 题解列表 2024年04月02日 2 点赞 0 评论 1123 浏览 评分:9.9
字典解决法,简单 摘要:解题思路:用排除法来判断是否有解法,踢去不可能的,则是存在的注意事项:参考代码:s1 = input().strip() s2 = input().strip() s3 = input().str…… 题解列表 2024年04月02日 0 点赞 0 评论 396 浏览 评分:9.9
python(简单直白--贪心) 摘要:解题思路: 假设X胜利求出每次i事件发生时的分差,存放在X_lst数组中,然后对其进行降序排序(贪心思维),对其进行求和直至sum不大于0, 求和个数即X胜利时可能发生的最大事件数…… 题解列表 2024年04月02日 0 点赞 0 评论 597 浏览 评分:7.1
蓝桥杯2023年第十四届省赛真题-接龙数列 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;int dp[10];int main(){ int n…… 题解列表 2024年04月02日 2 点赞 1 评论 1327 浏览 评分:9.9