esskk's blog

By esskk, history, 6 years ago, In English

Calculate number of ways to partition array in groups of consecutive elements,so that for each group following condition holds:the length of group is not less than minimum element in that group and length of group is not greater than maximum element in that group.Each element must belong to exactly one group. Constraints: N <= 5*10^5 Ai <= 10^9

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it