1099: 校门外的树,使用列表切片
摘要:解题思路:运用列表的切片操作,将区间内的点都设为0注意事项:给的区间可能会有重叠参考代码:L,m = map(int,input().strip().split())tree =[1]*(L+1)fo……
1099: 校门外的树
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int ……
菲暃要加油——校门外的树
摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())l=[1]*(a+1)print(l)foriinrange(b)……