1099: 校门外的树(勿看,半成品)
摘要:解题思路:#include <bits/stdc++.h>//
using namespace std;
int ji[10000000];
int main()
{
int l,m……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int l,m,tree[10000000],s,e,sum=0;int main……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int l,m,su……
1099: 校门外的树(简单c++)
摘要:解题思路:1.#include <bits/stdc++.h>
using namespace std;
long long a[100000];//创造数组
int main()
{
……
【c++】校门外的树 统计数组和的技巧
摘要:解题思路:发现这道题以前在lg上面写过,就把代码放过来,顺便本蒟蒻水一篇题解。其实这道题我将有树的地方赋值为1,反则为0,这样可以通过把数组相加得到树的个数,有点巧妙。注意事项:虽然但是,如果时间要求……
校门外的树(C++简单代码)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long L,M,sum=0,a[1000……
编写题解 1099: 校门外的树
摘要: #include
#include
#include
#include
#include
#include
using namesp……
1099: 校门外的树
摘要:解题思路:运用数组去做标记注意事项:参考代码:#include<iostream>
using namespace std;
int a[100000]={0};
int main()
{……