Time complexity of CUBE

@admin is the time limit too tight for the problem.My O(n^4) is getting a TLE.

dont use cin for reading the string.i got a TLE for using cin.use scanf or getchar for reading the string

1 Like

Thanks man thanks a lot.

//