题解 1099: 校门外的树

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

筛选

笨蛋方法(c语言)

摘要:解题思路:把数轴转化成足够长的数组并初始化为0,在每一次输入区域范围时,位于范围内的a[i]J减一,最后统计数值为0的a[i]注意事项:a[i]的长度要足够,不然会崩。参考代码:#include <s……

校门外的树 题解

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

1099: 校门外的树

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

敲简单C语言代码!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){    int m,l,i,c[10086],j,k=0;    scanf ("%d %d",&l,&m); ……

c语言:校门外的数

摘要:参考代码:#include<stdio.h>int main(){ int l,n,z,i,j=0; scanf("%d",&l); scanf("%d",&n); int a[l+1],x[n],y……

编写题解 1099: 校门外的树

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int M,L;    int a[100]={0};    int b[……

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

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