Each problem has an assigned score. Usually a more challenging problem has a higher score. Your objective is to obtain the highest score with the fastest finish time while making as few mistakes as possible. For more details about how to calculate your finish time, check What does the Finish/Penalty Time column mean in the ranking?.