Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

[Solved]Pls help me with this formula

Revision en2, by humbIefool, 2021-09-09 13:01:26

Hello codeforces, I want your help in following permutation and combination problem.

We are given an arr of numbers and we want to find the no of ways to put all occurences of second max(arr) to left of the max(arr) and ofcourse all the numbers are different(for eg. 4 4, we can arrange these in two ways). I couldn't solve yesterday's C just because of this, so I wanna learn this now. Thanks and have a good day :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English humbIefool 2021-09-09 13:01:26 8
en1 English humbIefool 2021-09-09 11:31:16 448 Initial revision (published)