Difference between revisions of "TADM2E 8.11"

From Algorithm Wiki
Jump to: navigation, search
(Redirected page to UNTV)
(Undo revision 1086 by FuckMatt (talk))
 
Line 1: Line 1:
#REDIRECT [[UNTV]]
+
For each length of range l in 1 .. n, for each starting index i, calculate the sum of the range of length l, starting at i as the sum of the range of length l - 1 starting at i plus the integer at i + l - 1 mod n.

Latest revision as of 00:49, 1 August 2020

For each length of range l in 1 .. n, for each starting index i, calculate the sum of the range of length l, starting at i as the sum of the range of length l - 1 starting at i plus the integer at i + l - 1 mod n.