praveenojha33's blog

By praveenojha33, history, 3 months ago, In English,

Can anyone tell me how I can proceed to solve this problem https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4108 . ( I am unable to find any good content which explains the solution of this problem. ) Thank You. Updated Link of the problem:https://uva.onlinejudge.org/external/13/1362.pdf

Read more »

Tags dp, uva
 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By praveenojha33, history, 4 months ago, In English,

I was solving problem https://codeforces.com/problemset/problem/601/A in which I was using simple BFS but I took MLE on test 57, but when I changed the way of marking visited node slightly it got accepted. Can anyone help me to understand the reason for this ?

This approach was Accepted. https://codeforces.com/contest/601/submission/55706140

This approach gave MLE https://codeforces.com/problemset/submission/601/55703452

The only difference is in the way how I mark visited node.

Thank You !!

Read more »

Tags bfs, mle
 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

By praveenojha33, history, 5 months ago, In English,

Currently I am unable to open TopCoder Arena on Ubuntu 18.04. It gives an error message

net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
	at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:582)
	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)

Earlier it was working fine. But I guess, the recent updates are the issue for the problem. I have tried the solutions from this two sources https://forums.linuxmint.com/viewtopic.php?t=294555 and AskUbuntu . Till now I am unable to find a way to start the Arena. I have also tried solutions from this blog https://codeforces.com/blog/entry/13613? and this thread TopCoder but none of them is working. Please help !!

Read more »

 
 
 
 
  • Vote: I like it
  • +10
  • Vote: I do not like it

By praveenojha33, history, 5 months ago, In English,

Hello, Community Members, Currently I was practicing from A2oj ladders for Div 2B and Div 2A problems. I have solved around 80 problems from ladder B and 50 from ladder A. I have decided to finish questions from both the ladders quickly and move to next section but unfortunately the site https://a2oj.com is not opening for about 8 hours. It would of great help if anyone can provide me an alternate link to all problems from both the ladders. I have tried searching on Google but I was unable to find any link. Thanks in Advance.

Read more »

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

By praveenojha33, history, 6 months ago, In English,

I am solving problems from problemset but from a long time (about half an hour) the solutions which I have submitted are not getting judged. It shows "In queue" for a long time. Can anyone tell me about the issue and for how long will it stay ?

UPD:The problem has been fixed and everything is fine now.

UPD1: I am again facing this issue, Date: 10 May 2019 Time: 12:11 AM (Indian Standard Time)

UPD2: The issue has been fixed again. Thank You !!

Read more »

 
 
 
 
  • Vote: I like it
  • +48
  • Vote: I do not like it

By praveenojha33, history, 8 months ago, In English,

Currently I was practicing in a virtual contest and for this problem https://codeforces.com/contest/1003/problem/C I got wrong answer for test case 1 ( though everything was working correctly offline and on other online compilers for same test case) after the contest when I looked at the test case and changed the header file to iostream, the same solution got Accepted. Can anyone please help me to figure out why such error occurred.

1)Link of submission getting WA verdict(with stdio.h header file):https://codeforces.com/contest/1003/submission/49744850

2)Link of same code on ideone getting correct output for same test case (with stdio.h header file): https://ideone.com/QPqinX

3)Link of same submission getting accepted using iostream header file: https://codeforces.com/contest/1003/submission/49745087

My Offline gcc version is 7.3.0(C++17) . Everything works fine on ideone also with gcc 6.3.0 (C++14)

Read more »

 
 
 
 
  • Vote: I like it
  • +8
  • Vote: I do not like it