Ad
  • Custom User Avatar

    Execution Timed Out (16000 ms)

    I don't know what to do to make this code shorter, I'm desperate
    I have three loops (for), 1 nested in another to calculate s(n), and a separate loop(for) to calculate z(s(n)). Is there any formula to fit everything into 1 loop(for)...?