#include #define pt(sth) cout << sth << "\n" #define itr(x,c) for(auto x=c.begin();x!=c.end();x++) #define all(a) (a.begin()),(a.end()) using namespace std; #include using namespace atcoder; typedef long long ll; typedef pair pll; templatebool chmax(T &a, const T &b) {if(abool chmin(T &a, const T &b) {if(b a(N); //for(i=0;i>a[i]; typedef vector v1d; typedef vector v2d; typedef vector v3d; int main(void) { ll i,j,k; ll N,M,K;cin>>N>>M>>K; v2d dp(K+5,v1d(N+5,0)); dp[0][1]=1; vector l(M),r(M); for(i=0;i>l[i]>>r[i]; for(k=0;k