随笔分类 -  树上问题-树上倍增

摘要:1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 inline ll re_ad() { 5 char ch=getchar(); ll x=0,f=1; 6 while(ch<'0' || ch>'9 阅读全文
posted @ 2021-10-03 22:35 上官书房 阅读(49) 评论(0) 推荐(1)
摘要:1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const ll N=1e6+11,St=1e6,mod=998244353; 5 ll T,n,A,B,dp[N]; 6 7 inline ll re 阅读全文
posted @ 2021-09-12 23:21 上官书房 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-10 16:46 上官书房 阅读(26) 评论(0) 推荐(0)