Hello guys,
I was trying to solve this task you can say for the last three hours.
I got the idea but idk why am i getting TLE at all, maybe cause of a big factor idk.
But this submission and this one are the same except of one single space in scanf, the question is would one space cause about 700ms OR this is not normal at all?
And you can compare between the two submissions to see the difference and to be exact #include and the space.
Also i know that it's not dp at all and i had to choose a better name, consider it length.
OK, Now i just copy pasted an AC solution already and changed to the same compiler and got TLE.
Can anyone explain how is this even possible?