题解 1099: 校门外的树

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

筛选

(java)小白的思路,简明易懂

摘要:解题思路:把路上的所有存在的树当做一个全为1的数组,若挖去,1改为0,最终统计1的个数(还有一个思路是把每个要挖的数数量计算,最后用总数减去,但是计算答案得分总是27,不知道问题在哪)注意事项:L长的……

校门外的数

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

校门外的树java

摘要:解题思路:与前面开关灯同样的思想来解这道题注意事项:参考代码:public class Main {    public static void main(String[] args) {      ……

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

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

1099: 校门外的树

摘要:解题思路:注意事项:参考代码:L,M=map(int,input().split(" "))T=[1 for i in range(L+1)]for i in range(M):   x=input(……

编写题解 1099: 校门外的树

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

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……

校门外的树(简单易懂)

摘要:解题思路:注意事项:参考代码:#includeint main(){ int i,j,s=0,p,q,m,l; scanf("%d %d",&l,&m); int a[l+1]; for(i=0;i<……