#include <iostream> #include <climits> #include <cstring> #define int long long using namespace std; typedef long long ll; const int maxn=1e5+10; ll n,m,r,p; struct Edge{ ll next,to; }e[maxn<<1]; struct node{ ll l,r,lazy,sum; }tree[maxn<<2]; int head[maxn]; ll cnt,tim...