CF796E Exam Cheating
Description
Zane and Zane's crush have just decided to date! However, the girl is having a problem with her Physics final exam, and needs your help.
There are $ n $ questions, numbered from $ 1 $ to $ n $ . Question $ i $ comes before question $ i+1 $ ( $ 1
Input Format
The first line contains three integers $ n $ , $ p $ , and $ k $ ( $ 1
Output Format
Print one integer — the maximum number of questions the girl can answer correctly.
Explanation/Hint
Let $ (x,l,r) $ denote the action of looking at all questions $ i $ such that $ l