校门外的树(设一数组,长度为L,数组元素值全为1,表示树在,为0时树被移走了,统计元素值为1的元素数,就为剩下的树) 摘要:解题思路:把数组元0素序看作数轴,变化其上的元素,判断树是否在注意事项:参考代码:#include<stdio.h> int main() { int l,m; scanf("%d%d",…… 题解列表 2023年10月11日 0 点赞 0 评论 115 浏览 评分:0.0
我这个巨简单 摘要:# 读取输入 L, M = map(int, input().split()) road = [0] * (L + 1) # 创建一个长度为 L+1 的数组,用于表示马路上的树 # 处理区…… 题解列表 2023年10月04日 0 点赞 0 评论 391 浏览 评分:9.9
利用区间合并的思想求解 摘要:解题思路: 将区间合并之后即可解决区间重合问题注意事项: 注意数据类型参考代码:#include<iostream>#include<algorithm>#include<vector>using n…… 题解列表 2023年09月23日 0 点赞 0 评论 195 浏览 评分:0.0
两种方法解题,一种列表,一种集合 摘要:解题思路:主要就是算L+1棵树里面需要减去的数目,重合的地方不再重复减,挺简单注意事项:用集合的时候要注意集合的创建方式别写错参考代码:方法一,采用列表:a,b=map(int,input().spl…… 题解列表 2023年08月30日 0 点赞 0 评论 457 浏览 评分:9.9
校门外的坤 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>int l,m,tree[10000000];using namespace std;int main(){ int…… 题解列表 2023年07月19日 0 点赞 0 评论 212 浏览 评分:0.0
1099: 校门外的树(勿看,半成品) 摘要:解题思路:#include <bits/stdc++.h>// using namespace std; int ji[10000000]; int main() { int l,m…… 题解列表 2023年07月19日 0 点赞 0 评论 142 浏览 评分:2.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int l,m,tree[10000000],s,e,sum=0;int main…… 题解列表 2023年07月19日 0 点赞 0 评论 398 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int l,m,tree[1000000],s,e,sum=0,a=0;int main()…… 题解列表 2023年07月19日 0 点赞 0 评论 222 浏览 评分:8.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int l,m,su…… 题解列表 2023年07月19日 0 点赞 0 评论 223 浏览 评分:0.0
1099: 校门外的树(简单c++) 摘要:解题思路:1.#include <bits/stdc++.h> using namespace std; long long a[100000];//创造数组 int main() { …… 题解列表 2023年07月16日 0 点赞 0 评论 176 浏览 评分:9.9