• BZOJ-1013 球形空间产生器sphere 高斯消元+数论推公式

    时间:2022-09-24 14:15:22

    1013: [JSOI2008]球形空间产生器sphere Time Limit: 1 Sec Memory Limit: 162 MB Submit: 3662 Solved: 1910 [Submit][Status][Discuss]Description 有一个球形空间产生器能够在n维空...

  • [LeetCode]Integer Break(Dp或胡搞或推公式)

    时间:2022-06-22 05:23:30

    343.IntegerBreakGivenapositiveintegern,breakitintothesumofatleasttwopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucan...

  • LightOJ-1408 Batting Practice(期望&推公式)

    时间:2021-08-18 21:53:22

    Q-BattingPractice LightOJ-1408 题意:每次投球投偏的概率为p,如果连续投中k1次或者连续投偏k2次则投球结束,问投球个数的期望值题解:数学期望推导公式设f(x)为连续投偏x次的期望,g(x)为连续投中x次的期望f(k1)=g(k2)=0先考虑f(x)f(x)=f(x+1...