最简单的组合数问题(递推法) 摘要:#include<bits/stdc++.h> using namespace std; const int N=2010; int c[N][N]; void init() { for…… 题解列表 2024年08月09日 0 点赞 0 评论 211 浏览 评分:0.0
最暴力的写法QwQ 摘要:#include<bits/stdc++.h> using namespace std; void solve() { int m,cnt=0; cin>>m; for(int i=…… 题解列表 2024年08月09日 1 点赞 0 评论 211 浏览 评分:0.0
dfs+判断数组解决排列 摘要:解题思路:注意事项:坑:1.题目空了一格输出,输出一个就换行2.字典序输出参考代码:#include<bits/stdc++.h>const int N=10;//题目默认字典序了strcmpint …… 题解列表 2024年08月09日 0 点赞 0 评论 298 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int y(int a,int b) { for(int i=min(a,b);i>…… 题解列表 2024年08月09日 0 点赞 0 评论 548 浏览 评分:0.0
不用考虑斜率不存在和分母为0的方法——余弦定理 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; #define PI 3.14159265358979323846 void sol…… 题解列表 2024年08月09日 0 点赞 0 评论 254 浏览 评分:0.0
最后一个点卡数组小于k和多组数据 摘要:#include<bits/stdc++.h> using namespace std; int main() { int t,k; while(cin>>t>>k) …… 题解列表 2024年08月09日 0 点赞 0 评论 196 浏览 评分:0.0
2^k进制数:组合数 摘要:解题思路:组合数注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; long long c(int n, int …… 题解列表 2024年08月09日 0 点赞 0 评论 320 浏览 评分:0.0
质因数分解 摘要:解题思路:注意事项:参考代码n=int(input())f=2while f*f<=n: if n %f==0: print(n//f) f+=1…… 题解列表 2024年08月10日 0 点赞 0 评论 257 浏览 评分:0.0
Java简单的a+b 摘要:Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int a=sc.nextInt(); int b=sc.nextInt(); …… 题解列表 2024年08月10日 0 点赞 0 评论 439 浏览 评分:0.0
Cylinder最大圆柱体积 摘要:解题思路:pi的精度11位注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const double pi = …… 题解列表 2024年08月10日 0 点赞 0 评论 451 浏览 评分:0.0