C ++ program to find Number of ways to choose K intersecting line segments on X - axis
#include <bits/stdc++.h> NEW_LINE using namespace std ; const long long mod = 1000000007 ; const int MAXN = 1001 ; long long factorial [ MAXN ] , inverse [ MAXN ] ;