菜鸡的题解015——麦森数 摘要:先附上大佬对快速幂的解读:https://blog.csdn.net/qq_19782019/article/details/85621386嘤嘤嘤,大佬tql!本题使用的方法就是快速幂和数组的大数乘…… 题解列表 2021年04月17日 0 点赞 0 评论 368 浏览 评分:8.7
动态规划-开心的金明(C++) 摘要:解题思路:动态规划参考代码:#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; i…… 题解列表 2021年04月17日 0 点赞 0 评论 323 浏览 评分:9.9
C++版本——线下筛打表+数组优化处理 摘要: #include using namespace std; #define INF 1500000 //素数公式(高级啊) π(x) ~ x/lnx …… 题解列表 2021年04月17日 0 点赞 0 评论 494 浏览 评分:0.0
蓝桥杯算法提高VIP-去注释 C++ getline 做法 摘要:解题思路:我看题解都是用getchar的做法,因此发个不同的做法,丰富一下解题方式。注意事项:参考代码:#include<iostream> #include<string> using name…… 题解列表 2021年04月17日 0 点赞 0 评论 239 浏览 评分:0.0
利用sort函数 摘要:解题思路:利用algorithm的sort函数对插入后的数组重新进行从小到大的排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp…… 题解列表 2021年04月17日 0 点赞 0 评论 229 浏览 评分:0.0
题解 2352: 信息学奥赛一本通T1440-数的划分 摘要:解题思路:整体思想是通过dfs去找符合n划分次数为k有多少种情况参考代码:#include <bits/stdc++.h>//万能头 using namespace std; int n,k,an…… 题解列表 2021年04月17日 0 点赞 0 评论 1170 浏览 评分:9.8
菜鸡的题解014——乘积最大 摘要:菜鸡的我动态规划写了好长时间还是参考了大佬的代码,呜呜呜这题我觉得更适合用DFS写,思路会比较清晰。下面给出我的两种代码动态规划:动态规划我太不熟练了。。#include<iostream> #in…… 题解列表 2021年04月16日 0 点赞 0 评论 312 浏览 评分:0.0
蓝桥杯Sine之舞(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; void An(int i, int n){ if(i==n) …… 题解列表 2021年04月16日 0 点赞 0 评论 542 浏览 评分:0.0
题解 1525: 蓝桥杯算法提高VIP-找素数 摘要:解题思路:题目要我们筛出L-R范围内的素数,那么我们只要将这个区间中的合数踢出去不就结束了吗说起判断合数,我就想到了美猴王合数的一个性质:可以分解为两个不为1且不等于本身的因子相乘 即 n=a*b(n…… 题解列表 2021年04月16日 0 点赞 0 评论 710 浏览 评分:9.9
筛法(赌他不卡我数据 摘要:解题思路:注意事项:参考代码#include <bits/stdc++.h>using namespace std;int a[1001000];int fuck(int x) { int ans =…… 题解列表 2021年04月16日 0 点赞 0 评论 280 浏览 评分:0.0