Later you'll be introduced to the rules of the Codeforces contests, which differ from those of ACM-ICPC, TopCoder, GCJ, and I hope they'll bring some difference to the world of programming competitions. Most of the official competitions will be carried out according to these rules, though there will be more traditional contests. For example, Codeforces Beta Round #1 will be carried out according to the familiar ACM-ICPC rules. For some time testing will be based on Windows, but things might change in future, fortunately, the system supports testing on different platforms, even within one contest.
At the present time the system is configured to support the following programming languages (the compilation and/or the launching line is shown for each language):
- GNU C++ 4
g++.exe -fno-asm -lm -s -x c++ -Wl,--stack=268435456 -O2 -o %name%.exe %1g++.exe -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -lm -s -x c++ -Wl,--stack=268435456 -O2 -o %name%.exe %1
- GNU C 4
gcc.exe -fno-asm -lm -s -x c++ -Wl,--stack=268435456 -O2 -o %name%.exe %1
gcc.exe -static -fno-optimize-sibling-calls -fno-strict-aliasing -DONLINE_JUDGE -fno-asm -lm -s -Wl,--stack=268435456 -O2 -o %name%.exe %1
- MS VS C++ 2005
cl /W4 /F268435456 /EHsc /O2 %1cl /W4 /F268435456 /EHsc /O2 /DONLINE_JUDGE %1
- Free Pascal 2
fpc.exe -So -XS %1 -o%~n1.exe
fpc.exe -dONLINE_JUDGE -So -XS %1 -o%name%.exe
- Delphi 7
dcc32 -cc %1
dcc32 -Q -DONLINE_JUDGE -cc %1
- C# Mono 2.6
gmcs -define:ONLINE_JUDGE -o+ -out:%name%.mono-exe %1
- Java 6
javac -cp ".;*" %1 и java.exe -Xmx256M -jar %s
javac -cp ".;*" %1
java.exe -Xmx256M -DONLINE_JUDGE=true -Duser.language=en -Duser.region=US -Duser.variant=US -jar %s
- Ruby 1.9
- Python 2.7
python.exe -O %s
- PHP 5.3
php.exe -n -d display_errors=Off -d error_reporting=0 %s
php.exe -n -d ONLINE_JUDGE=true -d display_errors=Off -d error_reporting=0 %s
- Haskell GHC 6.12
ghc --make -O %s
- F# 2.0
fsc.exe --define:ONLINE_JUDGE --optimize+ %s
ocamlopt nums.cmxa str.cmxa -pp camlp4o -unsafe -o %name%.exe-ocaml %1
It is not guaranteed that all the problems will have solutions in all the given languages (it's especially about the scripting ones). Probably, I'll later introduce equalizing coefficients for the working time for some languages. A "plus" next to the version name means that the testing system can use older versions. If you have suggestions about the possible ways to change the compilation or the launching line, write about them in your commentaries.
It should be mentioned that apart from standard verdicts, you can get "Denial of judgement", which usually means that your solution can't be launched, or it has unexpectedly failed. For example, is the Delphi array is too big, the compiler compiles the code, but the result will be the incorrect win32 exe-file. Solutions with the verdicts like "Compilation failed", "Denial of judgement", "Judgement failed" will be ignored while summing the results.
Moreover, pay attention, please, that the problems will be given in English as well as in Russian.
That's it, see you at Codeforces Beta Round#1.
UPD: GCC compiler has been added.
UPD 2: Added Haskell and F#.
UPD 3.1 (January, 5, 2013): Actual compiler versions are
- Mono C# compiler version 18.104.22.168
- DMD32 D Compiler v2.059
- Delphi 7 [Borland Delphi Version 15.0]
- Free Pascal Compiler version 2.6.0
- MinGW g++.exe (GCC) 4.7.2
- Haskell Glorious Glasgow, version 7.6.1
- Java 6 javac 1.6.0_37
- Java 7 javac 1.7.0_09
- Ocaml ocamlopt 4.00.1
- Perl v5.8.8
- PHP 5.4.9
- Python 2.7.3
- Ruby 1.9.3p327
- Scala compiler version 2.9.2
- MS VS C++ 2010