Day1T1数学计算 按照时间轴建一棵线段树即可,复杂度为 #include <bits/stdc++.h> #define N 100005 #define ll long long #define getchar nc using namespace std; inline char nc(){ static char buf[100000],*p1=buf,*p2=buf; return p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++; } inline ll read() { ...