A: EOJ is the abbreviation for ECNU Online Judge.
A: EOJ is the abbreviation for ECNU Online Judge.
A: We have already supported C, C++, Java, Python(3).
A: Here is an A + B Solution for each language:
For language C:
#include <stdio.h>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
printf("%d\n", a + b);
}
For language C++:
#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
}
For language Java:
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int a, b;
a = cin.nextInt();
b = cin.nextInt();
System.out.println(a + b);
}
}
For Python:
a, b = map(int, input().split())
print(a + b)
A: For C/C++, macro ONLINE_JUDGE is predefined in the program. For Java and Python, currently, no.
A: We are under Linux environment. So definitely %lld.
A: Java has a -150ms bonus on the time record for each test case. Memory display in Java is currently not available (always 0 sadly), but you can still get an error if you ask for too much memory.
A: Unfortunately there are no known solution to the memory problem. We are able to get a MLE correctly, but not a memory status. When it comes to Java, this problem gets worse. That's why all memory statuses for Java are 0KB.
A: Code should contain no more than 65536 characters.
A: We have Ubuntu 14.04 on the server, with Java version 1.7.0_121, g++ 4.8.4 and Python 3.4.3. Python 2 is currently not supported on the server.
A: Below are the compile commands for C, C++, Java, Python.
gcc -DONLINE_JUDGE -O2 -w -std=c99 main.c -lm -o main
g++ -DONLINE_JUDGE -O2 -w -fmax-errors=3 -std=c++11 main.cpp -lm -o main
javac Main.java -encoding UTF8
python3 -m py_compile solution.py
A: Normally it is because the problem is hidden, or you have submitted it in a contest.
A: Currently you can't. You can hide it though. Still, be careful when you create a blog.