- The first line of the input contains three space seperated integers: M, the number of machines, J, the number of jobs and the time limit T.
- There are 2J lines following the first line
- Each of the first J of these 2J lines has M space seperated integers ranging from 1-M representing the order of processing for each job
- For eg. if the ith line of these J lines is 2 1 3, then the ith job should first be processed on machine 2, then on machine 1 and lastly on machine 3.
- Each of the last J lines also has M space seperated integers representing the processing times for each job on each machine in the order of processing.
- For eg, if the ith line of the last J lines is 10 12 8, then the ith job takes 10 units of time on machin 2, 12 units of time on machine 1 and 8 units of time on machine 3.