线段树题解(简单理解) ##线段树**一看到单点更改和区间查询就知道用线段树了**普通线段树模板:```c++intnum[100005];structnode{intl,r,w;//l,r代表左右端点,w代表值}tree[100005*4+1];voidbuild(intl, 题解列表 2022年07月23日 0 点赞 0 评论 922 浏览 评分:6.4
2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; float num=0; …… 题解列表 2022年11月04日 0 点赞 0 评论 1041 浏览 评分:6.4
正常血压(简单明晰) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct record{ int a; int b;}press[100];//血压int main(){ int n; …… 题解列表 2023年02月09日 0 点赞 0 评论 832 浏览 评分:6.4
爬树的甲壳虫——Java #思路https://blog.csdn.net/qq_44579321/article/details/129465652(但是它的推导式在最后有点问题)https://www.acwing.com/solution/content/143214/(我更喜欢第一个链接的思路, 题解列表 2023年03月21日 0 点赞 0 评论 1428 浏览 评分:6.4
2848: 基因相关性(C语言) 摘要: #include #include int main() { float x; scanf("%f",&x); char a[501],b[501]; sca…… 题解列表 2023年08月21日 0 点赞 0 评论 907 浏览 评分:6.4
蓝桥杯2023年第十四届省赛真题-平方差 一次循环就可以解决 超简单 记住一句话就行 摘要:解题思路:当x是奇数或者为4的倍数是才符合条件(两个数的平方差)注意事项:正常些就行参考代码:#include<stdio.h>#include<math.h>int main(){ int m, n…… 题解列表 2023年10月12日 0 点赞 6 评论 1071 浏览 评分:6.4
秒懂的python代码 摘要:解题思路:利用for循环注意事项:for循环的范围“左闭右开”,应当为(1,n+1)参考代码:n=int(input())sum=1for i in range(1,n+1): sum=sum*…… 题解列表 2024年01月21日 0 点赞 0 评论 809 浏览 评分:6.4
2118: 信息学奥赛一本通T1179-奖学金 c++ 摘要:解题思路:注意题目没说有5个人,所以输出时有5个输出5个,没有输出n个参考代码:#include <bits/stdc++.h> using namespace std; struct stu …… 题解列表 2024年03月17日 1 点赞 0 评论 722 浏览 评分:6.4
交换Easy (C语言代码) 摘要:#include <stdio.h> int main(void) { int n, m, x, y, i, t; int a[1000]; scanf("%d%d", &n, &m)…… 题解列表 2017年12月14日 70 点赞 1 评论 1746 浏览 评分:6.5
理财计划 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int k,n,i; double p,sum=0; scanf("%d %d %lf",&k,&n,&p); …… 题解列表 2017年12月04日 0 点赞 0 评论 2122 浏览 评分:6.5