[Login|Register]
News

Statistics

Search users

F.A.Q.

Frequently Asked Questions
1. What compilers does the online judge use?
The online judge runs on Debian Linux(i386) with below compilers installed:
Language Compiler Options
C/C++ GCC 4.4.5 -O2 -Wall -static -pipe
Pascal FreePascal 2.4.0 -O2 -k-static
Java Sun JDK 1.6.0 None

2. Show me how to solve a problem.
Here are sample solutions for Problem 1000
C:
/* This also shows how to use 64-bit integer. */
#include <stdio.h>
int main()
{
    long long a,b;
    while(scanf("%lld%lld",&a,&b)!=EOF) printf("%lld\n",a+b);
    return 0;
}

C++:
#include <iostream>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b) cout<<a+b<<endl;
    return 0;
}

Pascal:
var a,b:integer;
begin
    while(not eof(input)) do
    begin
        readln(a,b);
        writeln(a+b);
    end;
end.

Java:
import java.util.Scanner;
public class Main {
    public static void main(String[] args)
    {
        Scanner in=new Scanner(System.in);
        while (in.hasNextInt())
        {
            int a=in.nextInt();
            int b=in.nextInt();
            System.out.println(a+b);
        }
    }
}

3. What does the result in status page mean?
ResultExplanation
Waiting You solution will be judged soon.
Compiling The system is compiling your solution now.
Running Your program is running. Please wait for result.
Accepted Congratulations. Your solution is correct.
Presentation Error Your program has produced correct answer, but with some unnecessary spaces or new lines at the end of ouput.
Wrong Answer Your program's output doesn't match judger's answer.
Runtime Error Your program terminated abnormally. Possible reasons are: segment fault, divided by zero or exited with code other than 0.
Time Limit Exceeded The CPU time your program used has exceeded limit. Java has a triple time limit.
Memory Limit Exceeded The memory your program actually used has exceeded limit.
Output Limit Exceeded Your program has produced too much output. The limit of output is 16mb.
Compile Error Failed to compile your source code. Click on the link to see compiler's output.
Restricted Function Your program is trying to call a function which may harm the server. Please don't do anything other than solving the problem.
It is known that Memory Limit Exceeded and Runtime Error would be judged as Restricted Function sometimes.
System Error Oops, something has gone wrong with the judger. Please report this to administrator.
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.0ms with 0 query(s).