online-judge

How do I adapt this program to comply with the online judge?

I'm solving UVA's Edit Step Ladders on an uva sub-site named programming-challenges.com, but since I didn't get at all the format in which I'm supposed to test-input I simply took their sample input, put it into a text file and tested my code from there. Like this: import java.io.*; import java.util.*; class Levenshtein { private s...

Problem processing input for online judge

This is related to my previous question I'm solving UVA's Edit Step Ladders and trying to make the online judge comply with my answer. I have used the method ReadLn() to adapt my textfile-reading program to this: import java.io.*; import java.util.*; class LevenshteinParaElJuez implements Runnable{ static String ReadLn(int maxLe...

Is Levenshtein's distance the right way to tackle this Edit Steps problem?

I'm familiar with Levenshtein's distance, so I decided I would use it to solve UVA's Edit Steps Ladder problem. My solution is: import java.io.*; import java.util.*; class LevenshteinParaElJuez implements Runnable{ static String ReadLn(int maxLength){ // utility function to read from stdin, ...

How does the ACM ICPC Online Judge prevent malicious attacks?

I've spent more than a few hours humbling myself on the ACM ICPC's problem set archive, and I've wondered how the online judge is able to compile and run source code from any user and prevent malicious attacks to their system. Are the compiled binaries run from some kind of limited sandbox? How would one go about setting up this kind o...

How to test a Python script with an input file filled with testcases?

I'm participating in online judge contests and I want to test my code with a .in file full of testcases to time my algorithm. How can I get my script to take input from this .in file? ...

Would you include your ranking in online coding contests in your resumé?

Would you include your ranking in online judges as UVA or SPOJ, or reputation in programming related websites like SO in your resumé? ...

Best online judge with good Java support?

Hi, I'm wondering what's a good online judge for just practicing algorithms. I'm currently not very good at writing algorithms, so probably something easy (and least frustrating) would be good. I've tried the UVA online judge, but it took me about 20 tries to get the first example question right; There was absolutely no documentation on...

Looking for online Judge Engine that support Python

I am writing a website which intends to be a place for use to paste/answer coding questions. Especially Python. So, I am looking for an "online judge" engine that could support Python(c/c++/java/# could be a plus), so that the guy who paste the question could provide a simple test, then others could answer it with the onlinejudge to ver...

SPOJ ADDREV Wrong Answer

I'm trying to solve the Adding Reversed Numbers problem (ADDREV) at the Sphere Online Judge but my submission keeps coming up wrong answer. I've tried int, unsigned int, long, and unsigned long for my variables and they all work equally well on my computer with some test data (also below) but they all fail the SPOJ. I'm hoping someone ...

How to Conduct an online coding competition?

I need to design a website for a programming competition event. It will be similar to TOP CODER competitions. User will be given all questions & then user submits the code, that will be running on the server and checks if it gives the correct solution or not. The first one to finish all the questions is the winner. I've no clue about ho...

How to protect an online judge against malicious code?

In the site Ideone a user uploads code to be run on a remote server. This is similar to the functions of an online judge. The problem is that users might upload code that attempts to 'hack' the system. I understand that in C and C++ it's easy to disable a certain set of system calls (patch a few .dll's), but I'm not so sure about other ...

How to obtain the consumption memory of running "exe"

Hello,my friend. I'm developing an "Online Judge System",like SGU "http://acm.sgu.ru/" I wangt to obtain the accurate consumption memory of running ".exe"(.c/.cpp-->.exe) using Java. Process : submit code-->hello.cpp/.c--compile-->hello.exe--run-->results I want to know how to obtain the consumption memory of running "hello.exe" Th...