can someone help me with the probability calculation part in this question?

Revision en1, by om1429888, 2022-08-11 17:05:01

for the first test case im getting 7/16 but it should be 7/8 basically im doing summation of 1/n*1/k*1/n*fre(y)/n. https://codeforces.me/contest/1279/problem/D

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English om1429888 2022-08-11 17:05:01 237 Initial revision (published)