https://discuss.codechef.com/t/evofweirdsum-editorial/97058 化简公式 S(c) = 1(c[1] + c[n]) / 2; E(s(c)) = (E(c[1] + c[n])) / 2; 线性期望性质 E(S(c)) = (E(c[1]) + E(c[n])) / 2 = (AVG(A) + AVG(A)) / 2 = AVG(A);
https://discuss.codechef.com/t/evofweirdsum-editorial/97058 化简公式 S(c) = 1(c[1] + c[n]) / 2; E(s(c)) = (E(c[1] + c[n])) / 2; 线性期望性质 E(S(c)) = (E(c[1]) + E(c[n])) / 2 = (AVG(A) + AVG(A)) / 2 = AVG(A);
上一篇:#464. 数数
下一篇:A. Exciting Bets
Linux 文件管理命令md5sum:MD5 函数值计算和检查 awk:模式匹配语言
Problem Description
Sum Problem Sample code :
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M