校门外的坤 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>int l,m,tree[10000000];using namespace std;int main(){ int…… 题解列表 2023年07月19日 0 点赞 0 评论 589 浏览 评分:0.0
校门外的树 c++ 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int L,M; cin>>L>>M; bool a[L+1]={f…… 题解列表 2022年01月17日 0 点赞 0 评论 497 浏览 评分:0.0
1099 数组实现 c++ 摘要:解题思路: 用数组模拟数轴 可以将一开始的初值全部设置为零 将要修路的路段用for循环将1填到要修的路段上 &nbs 题解列表 2022年02月12日 0 点赞 0 评论 695 浏览 评分:0.0
校门外的树 题解 摘要:解题思路:标记移走的树,再用总数减去移走的树的数量。注意事项:从0开始的。参考代码:#include<bits/stdc++.h>using namespace std;int n,k,x,y,a[1…… 题解列表 2022年05月07日 0 点赞 0 评论 528 浏览 评分:0.0
校门外的树 (C++代码) 摘要:解题思路:利用标记数组注意事项:明确端点是否包含其中参考代码:#include <iostream>using namespace std;int main (){ int l,m; cin>>l>>…… 题解列表 2017年07月14日 4 点赞 0 评论 1904 浏览 评分:0.0
编写题解 1099: 校门外的树 #include#include#include#include#include#includeusingnamespacestd;booliszhi(intx){for(inti=2;i*i>l>>m;inttree[l+1]={0};for(inti=1;i>a1>>a2;for(intj=a1; 题解列表 2023年03月05日 0 点赞 0 评论 468 浏览 评分:0.0
校门外的树(C++简单代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long L,M,sum=0,a[1000…… 题解列表 2023年03月16日 1 点赞 0 评论 549 浏览 评分:0.0
校门外的数 摘要:```cpp #include #include using namespace std; int main() { int n,m; cin>>n>>m; int c[1000…… 题解列表 2023年05月01日 0 点赞 0 评论 497 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int l,m,su…… 题解列表 2023年07月19日 0 点赞 0 评论 537 浏览 评分:0.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 评论 691 浏览 评分:0.0