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

×

time difference in two same solution

i submitted my solution for the problem Please like me in jan2014 long challenge. my first solution got time limit exceeded than i created one more solution and in that solution i just added function that is called for every test cases and that is accepted!! can you tell me guys why there is so much time difference in both solution?

asked 29 Mar '14, 14:37

jakesahir's gravatar image

1★jakesahir
013
accept rate: 0%

edited 29 Mar '14, 14:41


In your first solution you have used if(m=0), it should be if(m==0). I think that is the problem. Try changing the condition as if(m==0).

link

answered 16 Apr '14, 12:34

jawad's gravatar image

4★jawad
603
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×266
×205
×51

question asked: 29 Mar '14, 14:37

question was seen: 858 times

last updated: 16 Apr '14, 12:34