shubhamphpefy's blog

By shubhamphpefy, history, 4 months ago, In English

I was solving this problem and submitted first and second. But It seems that the first code is getting RE on tc14 and the second one is getting accepted.

I am not sure why is this happening. The only difference in the two codes is first one has dp[maxn/2][maxn][maxm] and second have dp[maxn][maxn/2][maxm] .

Please help. Thanks.

Full text and comments »

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

By shubhamphpefy, history, 7 months ago, In English

I submitted below codes for this problem.I got AC for one and TLE for other. I am unable to find how its happening. Please Help.

AC Submission
TLE Submission

Full text and comments »

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

By shubhamphpefy, history, 12 months ago, In English

Hey there! Actually I tried to solve this problem on UVA. I submitted this solution on vjudge but it is giving TLE. On local machine it is working for all test cases that I tried. I tried to debug as well initially. Now that I am getting correct answers but TLE as well I don't know what's going wrong. Please Help.

P.S. : This is my first blog entry.

Full text and comments »

Tags uva, dfs
  • Vote: I like it
  • +10
  • Vote: I do not like it