soha @ 2018-11-30 21:40:57
此贴不更新了,以后都将更新在洛谷帮助中心:
https://help.luogu.com.cn/manual/luogu/problem/judging#languages
为了方便大家使用洛谷,现在将评测机的语言环境公布如下:
语言 | 版本信息 |
---|---|
Pascal | Free Pascal Compiler version 3.2.2 [2023/10/16] for x86_64 |
C/C++ | gcc version 13.2.0 (GCC) |
C++14 (GCC 9) | gcc version 9.3.0 (GCC) |
Python 3 | 3.11.5, NumPy 1.25.2 |
PyPy 3 | Python 3.9.17 (3f3f2298ddc56db44bbdb4551ce992d8e9401646, Oct 16 2023, 15:22:08), PyPy 7.3.12 with GCC 12.3.0 |
Java 8 | OpenJDK Runtime Environment (build 1.8.0_362-ga) |
Java 21 | OpenJDK Runtime Environment (build 21+35-nixos) |
Node.js | 20.9.0 |
Ruby | ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) |
Go | 1.21.3 |
Rust | rustc 1.76.0-nightly (2c1b65ee1 2023-11-11) |
PHP | PHP 7.3.19-1~deb10u1 (cli) (built: Jul 5 2020 06:46:45) ( NTS ) Zend Engine v3.3.19, with Zend OPcache v7.3.19-1~deb10u1 |
PHP | PHP 8.2.12 (NTS) Zend Engine v4.2.12, with Zend OPcache v8.2.12 |
Mono C# | Mono C# compiler version 6.12.0.182 |
Mono VB | Microsoft (R) Visual Basic Compiler version 3.9.0-6.21124.20 (db94f4cc) |
Kotlin/JVM | kotlinc-jvm 1.9.20 (JRE 21+35-nixos) |
Scala | Scala compiler version 2.13.12 |
Haskell | The Glorious Glasgow Haskell Compilation System, version 9.4.7 |
Perl | perl 5, version 38, subversion 0 (v5.38.0) |
Julia | 1.9.3 |
Lua | 5.2.4 |
OCaml | 4.14.1 |
最后更新时间:2023/11/21
注意:
ocamlopt
编译为 native 程序执行。ONLINE_JUDGE=luogu
,可根据此判断是否在评测环境。另附部分语言的编译命令行(不包括源码和二进制文件路径、开启 O2 优化的参数和 gcc 的语言标准限定参数):
语言 | 参数 |
---|---|
Pascal | fpc -dONLINE_JUDGE -vnw |
C/C++ | gcc -DONLINE_JUDGE -Wall -fno-asm -lm -march=native |
Java | javac |
Go | go build |
Rust | rustc --edition 2021 -W warnings |
Mono C# | mcs -define:ONLINE_JUDGE |
Mono VB | vbnc -define:ONLINE_JUDGE |
Kotlin/JVM | kotlinc -jvm-target 1.8 -include-runtime |
Scala | scalac -optimize -deprecation -feature -explaintypes -target:jvm-1.8 |
Haskell | ghc -DONLINE_JUDGE -Wall |
by dblark @ 2018-12-01 16:04:50
资瓷
by 九城 @ 2018-12-01 16:19:36
资瓷!
by 业余门槛 @ 2018-12-01 18:03:47
hp
by 歌者。 @ 2018-12-01 19:36:55
后排
by 曾经的小玄XX @ 2018-12-01 19:52:56
滋滋
by 一飞冲天666 @ 2018-12-01 21:14:49
滋滋
by PolyLoger @ 2018-12-01 21:31:48
by RKcer21 @ 2018-12-01 22:01:28
资瓷
by 已注销%Jm9VScx @ 2018-12-02 07:06:02
好,perl党终于现身了!
by tgs9311 @ 2018-12-02 07:34:45
所以什么时候能用Java11?