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 <iostream>using namespace std;int l,m,tree[1000000],s,e,sum=0,a=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,这样可以通过把数组相加得到树的个数,有点巧妙。注意事项:虽然但是,如果时间要求……
(java)小白的思路,简明易懂
摘要:解题思路:把路上的所有存在的树当做一个全为1的数组,若挖去,1改为0,最终统计1的个数(还有一个思路是把每个要挖的数数量计算,最后用总数减去,但是计算答案得分总是27,不知道问题在哪)注意事项:L长的……