Tasks:
 
How are the Solutions Graded.
Here are some information on how are the solution graded. To find more info on how to submit JAVA files go here

Compiling

For C source files the following command is used

g++ -O2 c [source file] -x -l -static

For C++ source files the following command is used

g++ -O2 c++ [source file] -x -l -static

For Pascal source files the following command is used

fpc -So -O2 -XS [source file]

For Java source files the following command is used

javac [source file]

Execution

Your program is executed in a chroot jail directory with the least possible privileges, and therefore it can not access any of the grader's resources.

Any attempt to access and/or modify system resources will cause your account to be permanently closed.

Limits

By the time limit we assume the CPU time that your program uses. If the time limit is one second, and your program uses only 50% of the CPU time, it will be allowed to run for 2 seconds. However, as always there is a small error of measurement. Because of that all the limits are chosen to be pretty generous. In most cases the official solution uses only one third or one fourth of the allowed time limit.

By the memory limit we assume the total memory used by your program. This includes the program memory, the heap and the stack. When your program tries to obtain more memory than allowed it gets terminated.

Be careful when you include libraries. As explained above the program is compiled statically, and some of the heavy (i.e. STL) libraries can make your program very big.

There are two additional limits that are constant for all the programs.

Your program can not output more than 4 MB of data, and the submitted source code can not be larger than 40 KB.