There are three files:
college.txt talks about the list of colleges, their department and the maximum number of seats.
students.txt talks about the list of students,their respective ranks obtained in the cet exam and their choices of colleges
round1.txt talks about whether the student has opted for the allocated first choice that he has obtained in the first round of the cet allocation process.
An entry of 1 in round1.txt signifies that he has opted for the first choice that he has obtained in round 1 and an entry of 0 signifies that he wants to drop the college that he has obtained in the first choice.
In order to run the code type:
python cet_rank.py