1. You have to use 'sum of interval' formula.
  2. Iterative solution may cause TLE or CPU Limit Exceeded Error.
  3. Output size can be too large. So, storing output in a integer type variable may cause overflow.

Contributors

Statistics

80% Solution Ratio
edge555Earliest, Jul '19
edge555Fastest, 0.0s
Mansura_170300Lightest, 0 B
touhidurrrShortest, 85B
Toph uses cookies. By continuing you agree to our Cookie Policy.