#include <bits/stdc++.h> #define sc(x) scanf("%lld", &(x)) #define pr(x) printf("%lld\n", (x)) using namespace std; typedef long long ll; const int N = 1e5 + 7; const ll mod = 1e9 + 7; ll a[N], tree[N << 2], lazy[N << 2]; ll n, m, op, x, y, k; #define ls (p ...