You are not logged in. Please login at to post your questions!


CSEQ - April15 Long (Time Limit Verification)


I would like to know the time constraints about this problem. I have an algorithm which takes

O(20*N) time. 
where N is ((10power6) + 3).

Subtask-3 is getting TLE. Does the solution needs more improvement then that? I'm really exhausted optimizing it. I may have reached the atomic state of optimization.

Please let me know the Time constraints in O() notation. @admin: In case, any verification of code needed please see this submission.


asked 07 Apr '15, 13:03

codedecode0111's gravatar image

accept rate: 0%

edited 13 Apr '15, 15:13

admin's gravatar image

0★admin ♦♦

Hi @codedecode0111

It is against codechef rules to discuss solutions to any problem during an ongoing contest. Also, your solution is not visible to anyone for an ongoing contest.

The time-limit is mentioned in the problem, there may be a different approach. :)

The editorials will be put up after the contest, you can verify there.

Happy Coding! :D


answered 07 Apr '15, 13:19

sanchitkum's gravatar image

accept rate: 28%

Hi @sanchitkum,

I don't want to discuss the actual solution/approach to the problem.

The time-limit mentioned is 1 second. I wanted to know in big-O notation. So, like that I can validate it with my algorithm Time-complexity.

I know the code won't be visible to any users but however admin may see it. Hence, the tag. :)

I'm gonna try to debug further.


(07 Apr '15, 13:23) codedecode01115★

Look at the constraints and they say a lot about O()...

(07 Apr '15, 23:43) rohanagarwal5★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 07 Apr '15, 13:03

question was seen: 1,970 times

last updated: 13 Apr '15, 15:13