编写题解 1099: 校门外的树(简单版) 摘要:解题思路:利用布尔数组注意事项:参考代码:package arrLast; //题目 1099: 校门外的树 import java.util.Scanner; public class t_1…… 题解列表 2024年01月31日 0 点赞 0 评论 149 浏览 评分:0.0
校门外的树 摘要:解题思路:把马路的长当作数组长,在数组中全录入1,代表栽了树;在后续输入的数据中,两两为一组,在上一个数组中把一组的值变为0即可,则不需要考虑重复区域的问题,最后计算1的数量即可注意事项:参考代码:#…… 题解列表 2024年03月09日 0 点赞 0 评论 107 浏览 评分:0.0
借助数组实现变化,注意下标 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ const int l; int m,i,to,wei; int sum=0; scanf("%d",&l);…… 题解列表 2024年03月11日 0 点赞 0 评论 158 浏览 评分:0.0
1099: 校门外的树 摘要:参考代码:L, M = map(int, input().split()) arr = ['t' for _ in range(L + 1)] for _ in range(M):…… 题解列表 2024年03月20日 0 点赞 0 评论 148 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:L, M = map(int, input().split()) trees = [1 for x in range(L+1)] for x in range(M):…… 题解列表 2024年03月23日 0 点赞 0 评论 164 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:l,m=map(int,input().split())x=[]for i in range(0,m): a,b=map(int,input().split()) …… 题解列表 2024年03月26日 0 点赞 0 评论 171 浏览 评分:0.0
代码简单,好理解,小白思想(校门外的树) 摘要:解题思路:运用c++fill函数统计即可,注意fill(a,b,1)是左闭右开,【a,b),并且树是从零开始注意事项:参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2024年04月14日 0 点赞 0 评论 163 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:e……注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int i,j,k…… 题解列表 2024年04月21日 0 点赞 0 评论 188 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a…… 题解列表 2024年04月22日 0 点赞 0 评论 185 浏览 评分:0.0
1099校门外的树(数组解决) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m;//马路长度 int n;//组数 cin >> m >>…… 题解列表 2024年05月31日 0 点赞 0 评论 193 浏览 评分:0.0