Facing TLE in a problem

Правка en1, от 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$$$.

Теги problem

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Surgeon_of_Hell 2024-10-30 15:46:11 436 Reverted to en2
en3 Английский Surgeon_of_Hell 2024-10-30 15:45:51 436 Reverted to en1
en2 Английский Surgeon_of_Hell 2024-10-30 15:45:41 436 (published)
en1 Английский Surgeon_of_Hell 2024-10-30 15:31:07 228 Initial revision (saved to drafts)