题解 1099: 校门外的树

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    char L[10001]={0};    int a……

校门外的树 题解

摘要:解题思路:标记移走的树,再用总数减去移走的树的数量。注意事项:从0开始的。参考代码:#include<bits/stdc++.h>using namespace std;int n,k,x,y,a[1……

校门外的树(C++简单代码)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){     long long L,M,sum=0,a[1000……

1099 数组实现 c++

摘要:解题思路:              用数组模拟数轴              可以将一开始的初值全部设置为零              将要修路的路段用for循环将1填到要修的路段上      &nbs

校门外的树 c++

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int L,M; cin>>L>>M; bool a[L+1]={f……

校门外的数

摘要:```cpp #include #include using namespace std; int main() { int n,m; cin>>n>>m; int c[1000……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){    int l,m,su……

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int l,m,tree[10000000],s,e,sum=0;int main……