Sample Explanation
Sample Case #1 is the one described in the problem statement. As mentioned above, there are other valid solutions, like JCJ and JCC.
In Sample Case #2, all three activities overlap with each other. Assigning them all would mean someone would end up with at least two overlapping activities, so there is no valid schedule.
In Sample Case #3, notice that Cameron ends an activity and starts another one at minute 100 .
In Sample Case #4, any schedule would be valid. Specifically, it is OK for one partner to do all activities.
Limits
Test set 1 (7 Pts, Visible Verdict)
Test set 2 (12 Pts, Visible Verdict)