Driver code
static void Main ( ) { int N = 5 ; List < Tuple < int , int > > ranges = new List < Tuple < int , int > > ( ) ; ranges . Add ( new Tuple < int , int > ( 1 , 5 ) ) ; ranges . Add ( new Tuple < int , int > ( 1 , 5 ) ) ; ranges . Add ( new Tuple < int , int > ( 1 , 5 ) ) ; ranges . Add ( new Tuple < int , int > ( 2 , 3 ) ) ; ranges . Add ( new Tuple < int , int > ( 2 , 3 ) ) ; Console . Write ( find_maximum_jobs ( N , ranges ) ) ; } }