1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年05月04日 1 点赞 0 评论 177 浏览 评分:10.0
校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int L,M; scanf("%d%d",&L,&M); int n=L+1,sum=0; //n:树量 …… 题解列表 2024年08月28日 2 点赞 0 评论 208 浏览 评分:10.0
c++差分数组解法 摘要:解题思路:这题用数组标记法是可以做的,但可以进一步来降低时间复杂度,不难看出数组标记法中,每一步中都需要对区间内赋值为1,这一步与给区间内加上一个增量的操作等价,可以使用差分数组。这里给小白科普一下差…… 题解列表 2025年04月26日 1 点赞 0 评论 111 浏览 评分:10.0