2835: 计算书费 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double arr[100],sum=0,brr[100]; brr[0]=28.9; br…… 题解列表 2024年10月21日 0 点赞 0 评论 331 浏览 评分:9.9
搭配购买(buy) 并查集+01背包dp问题 摘要: #include using namespace std; const int N = 1e4 + 5; int father[N]; int valu…… 题解列表 2024年10月21日 1 点赞 0 评论 196 浏览 评分:9.9
亲戚 并查集+人数求和 摘要: #include using namespace std; int n,m,a,b; char c; struct relation …… 题解列表 2024年10月21日 0 点赞 0 评论 187 浏览 评分:9.9
亲戚 并查集+人数求和 摘要: #include using namespace std; const int MAXN = 100010; int fa[MAXN], size[MAXN]; …… 题解列表 2024年10月21日 1 点赞 0 评论 263 浏览 评分:9.9
蓝桥杯2024年第十五届省赛真题-封闭图形个数(C++) 摘要:解题思路:不使用结构体,而使用vector向量作为不同个数封闭图形的存放处,好处就是不限制同一个数封闭图形的次数。注意事项:sort(num[i].begin(), num[i].end());是对每…… 题解列表 2024年10月22日 1 点赞 0 评论 740 浏览 评分:9.9
[信息学奥赛一本通T1541-数列区间最大值] ST表 摘要:# 线段树常数大了得加点小细节才能过(~~反正我没过~~),静态询问嘛,就用ST表就行 ```cpp #include #define ULL unsigned long long #defi…… 题解列表 2024年10月22日 0 点赞 0 评论 197 浏览 评分:9.9
1039: [编程入门]宏定义之闰年判断(python) 摘要:#### ~~~python def islun(n): if n%4 == 0 and n%100 != 0: return 'L' if n%400…… 题解列表 2024年10月22日 0 点赞 0 评论 603 浏览 评分:9.9
1014: [编程入门]阶乘求和(递归求法) 摘要:解题思路:注意事项:参考代码:#includelong fun(int n) //定义一个阶乘函数 {if (n ==…… 题解列表 2024年10月22日 1 点赞 0 评论 791 浏览 评分:9.9
2824: 求出e的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double abb(int a){ if(a==1||a==0) return 1; else return …… 题解列表 2024年10月22日 0 点赞 0 评论 224 浏览 评分:0.0
找三个数的最大值 有详细的注释帮助你更好的理解哦(比较好理解的Java代码) 摘要:解题思路:已知:输入三个整数 求解:三个整数的最大值注意事项:三个整数 参考代码:import java.util.Scanner;public class Main { public s…… 题解列表 2024年10月22日 2 点赞 0 评论 819 浏览 评分:9.9