Facing TLE in a problem

Revision en1, by Surgeon_of_Hell, 2024-10-30 15:31:07

Problem Statement:

Given an integer $$$n$$$, calculate the sum of all integers from $$$1$$$ to $$$n$$$ where each term adds the first $$$k$$$ integers for $$$k$$$ from $$$1$$$ to $$$n$$$. Output the result modulo $$$10^9 + 7$$$.

Tags problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Surgeon_of_Hell 2024-10-30 15:46:11 436 Reverted to en2
en3 English Surgeon_of_Hell 2024-10-30 15:45:51 436 Reverted to en1
en2 English Surgeon_of_Hell 2024-10-30 15:45:41 436 (published)
en1 English Surgeon_of_Hell 2024-10-30 15:31:07 228 Initial revision (saved to drafts)