1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年04月27日 0 点赞 0 评论 198 浏览 评分:2.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;typedef long long ll;const ll N=1e5;//太大会爆ll a…… 题解列表 2024年04月22日 0 点赞 0 评论 216 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:e……注意事项:注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int i,j,k…… 题解列表 2024年04月21日 0 点赞 0 评论 209 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 189 浏览 评分:9.9
1099: 校门外的树,使用列表切片 摘要:解题思路:运用列表的切片操作,将区间内的点都设为0注意事项:给的区间可能会有重叠参考代码:L,m = map(int,input().strip().split())tree =[1]*(L+1)fo…… 题解列表 2024年04月19日 1 点赞 0 评论 282 浏览 评分:10.0
代码简单,好理解,小白思想(校门外的树) 摘要:解题思路:运用c++fill函数统计即可,注意fill(a,b,1)是左闭右开,【a,b),并且树是从零开始注意事项:参考代码:#include<bits/stdc++.h>using namespa…… 题解列表 2024年04月14日 0 点赞 0 评论 192 浏览 评分: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 评论 209 浏览 评分: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 评论 194 浏览 评分: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 评论 173 浏览 评分: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 评论 178 浏览 评分:0.0