2ndSequence's blog

By 2ndSequence, history, 4 years ago, In English

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?

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It has happened to me when c style io is faster on c++11 than c++17.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    There is definitely something wrong on the CF side because there is no difference between the two latter submissions.