sum of triangular numbers

Revision en1, by Minimalistic, 2018-06-29 05:16:08

you have an an integer n such that 1<=n<= 10^12, find the sum of all triagular numbers that are less than or equal n,

time limit: 1 second

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Minimalistic 2018-06-29 05:16:08 167 Initial revision (published)