蓝桥杯Sine之舞(c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; void An(int i, int n){ if(i==n) …… 题解列表 2021年04月16日 0 点赞 0 评论 883 浏览 评分:0.0
题解 1525: 蓝桥杯算法提高VIP-找素数 摘要:解题思路:题目要我们筛出L-R范围内的素数,那么我们只要将这个区间中的合数踢出去不就结束了吗说起判断合数,我就想到了美猴王合数的一个性质:可以分解为两个不为1且不等于本身的因子相乘 即 n=a*b(n…… 题解列表 2021年04月16日 0 点赞 0 评论 893 浏览 评分:9.9
筛法(赌他不卡我数据 摘要:解题思路:注意事项:参考代码#include <bits/stdc++.h>using namespace std;int a[1001000];int fuck(int x) { int ans =…… 题解列表 2021年04月16日 0 点赞 0 评论 431 浏览 评分:0.0
DP和最大子序列DP 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int dp[100001]; int…… 题解列表 2021年04月16日 0 点赞 0 评论 688 浏览 评分:0.0
优质题解 全球变暖 DFS解决 C++ 摘要:解题思路: 类似于Flood Fill思路,刚开始我的思路是两次DFS,每次求联通岛屿个数,在两次之间先判断那些点临近海洋'.',将这些点也变成海洋。但没有AC,原因是对于有些岛…… 题解列表 2021年04月16日 0 点赞 0 评论 1219 浏览 评分:9.9
简单易懂还是STL香 摘要:#include<bits/stdc++.h> using namespace std; //写一个仿函数 class MyPrint { public: voi…… 题解列表 2021年04月16日 0 点赞 0 评论 378 浏览 评分:0.0
C++版本—— 理解题意 摘要: #include using namespace std; int main() { int m,n; cin >> m >>…… 题解列表 2021年04月16日 0 点赞 0 评论 519 浏览 评分:0.0
C++ STL(加强对STL的熟练) 摘要:#include<bits/stdc++.h> using namespace std; class MyPrint { public: void operator()…… 题解列表 2021年04月16日 0 点赞 0 评论 545 浏览 评分:9.9
菜鸡的题解013——一元三次方程求解 摘要:暴力,依次把i加0.01,当代入所得值极接近0时(我用了小于1e-4),即为所得答案。参考代码:#include<iostream> #include<cstdio> #include<algor…… 题解列表 2021年04月16日 0 点赞 0 评论 564 浏览 评分:0.0