deals专题

Codeforces Contest 1070 problem E Getting Deals Done —— 二分

Polycarp has a lot of work to do. Recently he has learned a new time management rule: “if a task takes five minutes or less, do it immediately”. Polycarp likes the new rule, however he is not sure tha