#include using namespace std; #define INF 1000000000 #define MOD 1000000007 using ll=long long; using Graph=vector>; int main(){ int N,M,K; cin>>N>>M>>K; vector L(M),R(M); for(int i=0;i>L[i]>>R[i]; L[i]--; } vector> dp(K+1,vector(N,0)); dp[0][0]=1; for(int i=0;i sum(N+1,0); for(int j=0;j diff(N+1,0); for(int j=0;j