C++:map容器简单使用方法_练习 摘要:解题思路:把每一个坐标元素都放进一个数组中间,并且进行初始化,已经区域就改变赋值,如果在最后遍历数组的时候发现初始化的赋值被改变了,就跳过,没改变就记录。注意事项:把map容器当成普通数组使用,特殊的…… 题解列表 2025年03月07日 0 点赞 0 评论 227 浏览 评分:0.0
编写题解 1099: 校门外的树C++ 摘要:```cpp #include /* 文件头可以随便,我喜欢万能头,这里也可以(注意有memset函数,要用cstring库): #include #include */ using …… 题解列表 2024年11月26日 6 点赞 1 评论 652 浏览 评分:8.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int L,M; cin>>L>>M; …… 题解列表 2024年11月07日 1 点赞 0 评论 249 浏览 评分:0.0
1099校门外的树(数组解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m;//马路长度 int n;//组数 cin >> m >>…… 题解列表 2024年05月31日 0 点赞 0 评论 157 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年05月04日 0 点赞 0 评论 143 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 0 点赞 0 评论 139 浏览 评分:2.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a…… 题解列表 2024年04月22日 0 点赞 0 评论 158 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 138 浏览 评分:9.9
代码简单,好理解,小白思想(校门外的树) 摘要:解题思路:运用c++fill函数统计即可,注意fill(a,b,1)是左闭右开,【a,b),并且树是从零开始注意事项:参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2024年04月14日 0 点赞 0 评论 135 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:设一个数组全为0,输入l长度,将数组l长度的元素设为1。一次次输入需要规划的起点和终点,在数组中,将这些区域设0;最后统计1的个数。注意事项:注意端点0与l,都应该取到。参考代码:#incl…… 题解列表 2024年03月11日 1 点赞 0 评论 165 浏览 评分:9.9