Another Contest 4 Problem 8 - DMOJ!

View as PDF

Submit solution


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

Problem type
Allowed languages
C++

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 \mathcal O\left(|s|^4\right) before, but it will net you zero points on this question.


Comments


  • -1
    discoverMe  commented on June 21, 2019, 12:43 a.m.

    you can't have any global variables


    • 12
      Darcy____Liu  commented on June 21, 2019, 1:15 a.m. edited

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