Another Contest 4 Problem 8 - DMOJ!

View as PDF

Submit solution

Points: 1
Time limit: 0.6s
Memory limit: 256M

Problem type
Allowed languages

Where were you a month and a half ago? Probably not implementing this function:

long long f(string s)

You may assume 1 \le |s| \le 10^4. You might have tried O\left(|s|^4\right) before, but it will net you zero points on this question.


  • -2
    discoverMe  commented on June 20, 2019, 8:43 p.m.

    you can't have any global variables

    • 13
      Darcy____Liu  commented on June 20, 2019, 9:15 p.m. edited

      But yes, you can. They just don't get reset each time your method is called.