HOW TO MAKE MY CODE EFFICIENT. MY CODE’S LINK IS: CodeChef: Practical coding for everyone
Use STL sort.