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