Hello guys,↵
↵
I was trying to solve this [task](https://codeforces.com/contest/375/problem/B) 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](https://codeforces.com/contest/375/submission/93815343) and this [one](https://codeforces.com/contest/375/submission/93815155) 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 <algorithm> 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](https://codeforces.com/contest/375/submission/60656405) solution already and changed to the same compiler and got [TLE](https://codeforces.com/contest/375/submission/93816636).↵
↵
Can anyone explain how is this even possible?
↵
I was trying to solve this [task](https://codeforces.com/contest/375/problem/B) 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](https://codeforces.com/contest/375/submission/93815343) and this [one](https://codeforces.com/contest/375/submission/93815155) 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 <algorithm> 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](https://codeforces.com/contest/375/submission/60656405) solution already and changed to the same compiler and got [TLE](https://codeforces.com/contest/375/submission/93816636).↵
↵
Can anyone explain how is this even possible?