toy-lib-0.1.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.FloorSum

Synopsis

Documentation

floorSumUnsigned :: Int -> Int -> Int -> Int -> Int #

\(O(\log ma)\) Floor sum: https://atcoder.jp/contests/practice2/tasks/practice2_c

Input constraints

  • \(n > 0\)
  • \(m >= 0\)
  • \(a >= 0\)
  • \(b >= 0\)

floorSum :: Int -> Int -> Int -> Int -> Int #

\(O(\log ma)\) Floor sum: https://atcoder.jp/contests/practice2/tasks/practice2_c

Input constraints

  • \(n > 0\)
  • \(m >= 0\)