Which programming languages can I use?
The system supports the following programming languages:
- C – GNU GCC 5.1.0 / 7.3.0
- C++ – GNU G++ 5.1.0 / 7.3.0
- C++11 – GNU G++11 5.1.0 / 7.3.0
- C++17 – GNU G++17 7.3.0
- C++20 – GNU G++20 13.2.0 (64bit)
- C# – MS C# .NET 4.7
- Java – Java 1.8
- JavaScript – JavaScript v8 4.8.0
- Pascal – Free Pascal 2.6.4
- Python 2.7 – Python 2.7.13 (PyPy)
- Python 2.7 – Python 2.7.13 (CPython)
- Python 3.5 – Python 3.5.3 (CPython)
- Python 3.9 – Python 3.9.16 (PyPy)
- Haskell – Haskell GHC 8.0.2
- Kotlin – Kotlin 1.3.50
- Tiger – tiger.pdf (101.8 kB)
⚠️ Special notes about Java
There must be a class which must contain a name for the 'main' static methods (functions), this method is
the entrance. Your main class name must be 'Main'.
Which kind of input/output can I use?
MOG only supports the standard input and output, the system does not allow you manipulate files,
otherwise, will be sentenced for Runtime Error or Wrong Answer.
When I submit a program, which are the possible results?
Here is a list with the possible submission results you can get:
- Pending – Your solution is waiting for judgment, this process is generally not very long.
- Compiling – Your code is being compiled.
- Running – Your program is running.
- Accepted – Your program is correct, congratulations!
- Wrong Answer – Your solution didn't output the correct solution.
- Runtime Error – Your solution crashed during execution.
- Time Limit Exceeded – The running time of your program is beyond the problem time limit.
- Idleness Limit Exceeded – Your program waste too much time in idle status (IO, CPU waiting, etc.).
- Memory Limit Exceeded – The running memory of your program is beyond the problem memory limit.
- Compile Error – Your code couldn't be compiled. You can see the errors at the submission's details.
- Internal Error – There was an error on MOG system.
Which kind of errors will be penalized during a contest?
- Wrong Answer
- Runtime Error
- Time Limit Exceeded
- Idleness Limit Exceeded
- Memory Limit Exceeded
Problem Score
Once a user solves a new problem his score will increase in
value equal to the problem score. A problem is considered
solved if the user accepted it in a real or virtual contest
too, thus no extra submissions are needed.
The problem score formula is quite simple:
$\large{\lfloor \frac{108}{12 + S} \rfloor + 1}$, where $S$ is the
different number of users who solve the problem. The problem
score is an integer between $1$ and $10$ inclusive and of course, the
more users solve a problem, the lower the score will be.
How to solve A+B problem ?
Given two small integers $A$ and $B$ what is the result of $A + B$ ?
C
C++
C#
Java
JavaScript
Pascal
Python2
Python3
Kotlin
Tiger