Блог пользователя shubhamphpefy

Автор shubhamphpefy, история, 3 месяца назад, По-английски

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.

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор shubhamphpefy, история, 6 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор shubhamphpefy, история, 11 месяцев назад, По-английски

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.

Полный текст и комментарии »

Теги uva, dfs
  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится