You are not logged in. Please login at 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

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).


answered 16 Apr '14, 12:34

jawad's gravatar image

accept rate: 0%

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: 29 Mar '14, 14:37

question was seen: 858 times

last updated: 16 Apr '14, 12:34