Rush's blog

By Rush, history, 4 weeks 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

»
4 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Rush (previous revision, new revision, compare).

»
4 weeks 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 weeks 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.

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Well, i never knew that until now so thank you.

    But what about the accepted solution and the TLE solution?

    No need to explain the code cause they are identical so they should both get AC.

    And the same compiler.