#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,q,p,l,r,x,a[1000006],f[1000006];
int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    freopen("SLR.INP", "r", stdin);
    freopen("SLR.OUT", "w", stdout);
    cin >> n >> q >> p;
    while(q--)
    {
        cin >> l >> r >> x;
        a[r+1] -= x;
        a[l] += x;
    }
    for(int i = 1; i <= n; i++)
    {
        a[i] += a[i-1];
        f[i] += f[i-1] + a[i];
    }
    while(p--)
    {
        cin >> l >> r;
        cout << f[r] - f[l-1] << '\n';
    }
}
