Skip to content

Icaro-Nunes/icpc-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ICPC Library


Formulas

  • Expected value of geometric distribution (expected number of failed Bernoulli trials before the first success, where $p$ is the probability of a single success):

    • ${1-p}\over p$
  • Sum of arithemtic sequence:

    • $n\times{({a_1+a_n})\over{2}}$
    • ${n\over2}\times{[2a_1 + (n-1)\times d]}$
    • Where:
      • $a_1 =$ first term
      • $d =$ common difference
      • $n =$ number of terms in the range

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published