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

Правка en1, от 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский om1429888 2022-08-11 17:05:01 237 Initial revision (published)