I have just started competitive programming. I was going through the past problems of ZCO when I noticed that there are sub-tasks to be solved in each problem, each of them carrying different points. My question is that do we write different codes for each of the sub-tasks or do we write a single code which fulfills the requirements of all the sub-tasks? Please reply. I am very confused about this.