Here is the specification of the grader system.
Machine
C++ compiler
g++ -std=c++11 -o solution solution.cpp -O2 -lm
Java compiler
javac <filename>