Two Classes
CodeChefOpen on judge ↗
Problem description. Aditya who is a very good teacher.He has to take N number of classes but due to his busy schedule he decides to go only for any of the two classes.He knows starting and ending time of each class. Now he wants to know in how many ways he can select these two classes. Output your answer % (109+7). Note:- 1. It takes 0 time units to move from one class to the other class. 2.
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start