実行OS環境
CentOS Linux release 8 (Core)
ただし clangは
Ubuntu 18.04.3 LTS (Bionic Beaver)
実行コマンド
言語 | バージョン | 言語ID | コンパイルコマンド | 実行コマンド |
---|---|---|---|---|
C++14 | gcc 12.2.0 + boost 1.81.0 | cpp14 | g++7 -I /boost_git/ -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C++17 | gcc 12.2.0 + boost 1.81.0 | cpp17 | g++7 -I /boost_git/ -O2 -lm -Wuninitialized -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C++17(clang Beta) * | clang 13.0.0 + boost 1.81.0 | cpp-clang | clang++ -I /boost_git/ -O2 -lm -std=c++1z -Wuninitialized -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C++23(draft) | gcc 12.2.0 + boost 1.81.0 | cpp23 | g++7 -I /boost_git/ -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C++11 | gcc 8.5.0 | cpp | g++ -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C | gcc 12.2.0 | c11 | gcc7 -O2 -lm -std=c11 -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
C90 | gcc 8.5.0 | c | gcc -O2 -lm -DONLINE_JUDGE -o a.out _filename_ | ./a.out |
Java19 | openjdk 19.0.1 | java8 | javac -encoding UTF8 _filename_ | /usr/bin/java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_ |
C# | csc 3.9.0 | csharp | csc -langversion:latest -unsafe -warn:0 -o+ /r:System.Numerics.dll _filename_ -out:a.exe | /usr/bin/mono a.exe |
C#(mono) | mono 6.12.0.158 | csharp_mono | mcs -langversion:latest -unsafe -warn:0 -o+ /r:System.Numerics.dll _filename_ -out:a.exe | /usr/bin/mono a.exe |
C#(.NET 6 Beta) | .NET 6.12.0 | csharp_dotnet | /usr/bin/dotnet_c | ./bin/Release/net6.0/main |
Perl | 5.26.3 | perl | /usr/bin/perl -cw _filename_ | /usr/bin/perl -X _filename_ |
Raku | rakudo v2022.12-1-gd52342eb0 | raku | /usr/bin/perl6 -c _filename_ | /usr/bin/perl6 _filename_ |
PHP | 7.2.24 | php | php -l _filename_ | /usr/bin/php _filename_ |
PHP8 | 8.2.4 | php7 | php7 -l _filename_ | /usr/bin/php7 _filename_ |
Python3 | 3.11.2 + numpy 1.24.2 + scipy 1.10.1 | python3 | /usr/local/bin/python3 -mpy_compile _filename_ | /usr/local/bin/python3 _filename_ |
PyPy2 | 7.3.11 | pypy2 | pypy2 -m py_compile _filename_ | /usr/bin/pypy2 Main.pyc |
PyPy3 | 7.3.11 | pypy3 | pypy3 -mpy_compile _filename_ | /usr/bin/pypy3 _filename_ |
Ruby | 3.2.1 | ruby | /usr/bin/ruby -w -c _filename_ | /usr/bin/ruby _filename_ |
D | dmd 2.102.2 | d | dmd -m64 -w -wi -O -release -inline -I/opt/d/src/druntime/import/ -I/opt/d/src/phobos -L-L/opt/d/linux/lib64/ _filename_ | ./Main |
Go | 1.20.2 | go | env GOCACHE=/tmp go build _filename_ | ./Main |
Haskell | 9.6.1 | haskell | ghc -rtsopts -with-rtsopts=-K1G -o a.out -O2 _filename_ | ./a.out |
Scala(Beta) | 3.2.2 | scala | scalac _filename_ | scala _class_ |
Nim | 1.6.12 | nim | nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_ | ./a.out |
Rust | 1.68.1 | rust | rustc --edition 2021 -C opt-level=3 Main.rs -o Main | ./Main |
Kotlin | 1.8.10 | kotlin | kotlinc _filename_ -include-runtime -d main.jar | kotlin main.jar |
Scheme | Gauche-0.9.12 | scheme | true | /usr/bin/gosh _filename_ |
Crystal | 1.7.3 | crystal | crystal build -Donline_judge -o a.out --release --no-debug _filename_ | ./a.out |
Swift | 5.4.2 | swift | /usr/bin/swiftc _filename_ -Ounchecked -o a.out | ./a.out |
OCaml | 5.0.0 | ocaml | ocamlfind ocamlopt -o a.out -linkpkg -package zarith,str _filename_ -o a.out | ./a.out |
Clojure(Beta) | 1.10.2.790 | clojure | true | clojure -M _filename_ |
F# | 5.0 | fsharp | fsharpc _filename_ --out:a.exe | /usr/bin/mono ./a.exe |
Elixir | 1.14.3 | elixir | elixirc _filename_ | /usr/local/bin/elixir -e Main.main |
Lua | LuaJit 2.0.5 | lua | luajit -b _filename_ a.out | /usr/bin/luajit _filename_ |
Julia | 1.7.3 | julia | true | julia _filename_ |
Fortran | gFortran 8.5.0 | fortran | gfortran _filename_ -O2 -o ./a.out | ./a.out |
JavaScript | node v18.15.0 | node | true | /usr/bin/node _filename_ ONLINE_JUDGE |
TypeScript | 5.0.2 | typescript | /usr/bin/tsc.sh -p tsconfig.json | /usr/bin/node main.js ONLINE_JUDGE |
Common Lisp | sbcl 2.1.6 | lisp | sbclc _filename_ | /usr/local/bin/sbcl --script Main.fasl |
Standard ML | MLton 20210117 | sml | mlton _filename_ | ./main |
Kuin | KuinC++ v.2021.9.17 | kuin | KuinInKuin -i _filename_ -o out.cpp -s /KuinInKuin/src/sys/ -e cpp -r -q | ./a.out |
Vim script | v9.0 | vim | true | /usr/bin/vim -u NONE -i NONE -X -N -n -e -s -S _filename_ /dev/stdin -c qa! |
Bash | Bash 4.4.20 | sh | true | /usr/bin/sh _filename_ |
Assembler | nasm 2.15.03 | nasm | nasmc Main | ./a.out |
cLay | 20221230-1 | clay | clayc _filename_ | ./a.out |
Brainfuck | BFI 1.1 | bf | true | /usr/bin/bf _filename_ |
Whitespace | 0.3 | Whitespace | true | /usr/bin/wspace _filename_ |
Text | cat 8.3 | text | true | /usr/bin/cat _filename_ |
(clangについてはいずれは対応したい。)
/usr/include/
にhttps://github.com/atcoder/ac-library.gitを入れています。
つまり、ACLが使えます。(使用方法は上記のリンク先参照)
nasmcは,
nasm -f elf64 -Werror $1.asm && ld -s -o a.out $1.o
sbclcは,
sbcl --eval "(compile-file \"${1}\")" --quit
kuincは
kuincl.exe -i $1 -o out.exe -e cui -r -q
brainfuckは http://esoteric.sange.fi/brainfuck/impl/interp/BFI.cの処理系を使用。
cLayについてはこちら
yukicoderではGCC8.3.1(C++14)でビルド、実行しています
.NET 5.0は下のものと同等です。
echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net5.0</TargetFramework><LangVersion>latest</LangVersion></PropertyGroup></Project>' > main.csproj; dotnet publish -c Release -r centos.8-x64 -o output
入れて欲しいコンパイラがありましたら、ご連絡ください。(CentOS 7で動作するもの)
もしくはDockerfileを頂ければスムーズかもしれません。
/proc/cpuinfo
(今後、予告なく変更する可能性があります、あくまでも2023年04月01日現在のものです。)
コアが複数あっても、ジャッジのコアは1つに制限しています。
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU @ 2.30GHz stepping : 0 microcode : 0xffffffff cpu MHz : 2299.998 cache size : 46080 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat md_clear arch_capabilities bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs mmio_stale_data retbleed bogomips : 4599.99 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management:
各コンパイラバージョン
万が一、上の記述と異なるものがある場合は下のコマンドが最新です。
+ g++ --version g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + gcc --version gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + g++7 --version g++7 (GCC) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + java -version openjdk version "19.0.2" 2023-01-17 OpenJDK Runtime Environment (Red_Hat-19.0.2.0.7-1.rolling.el8) (build 19.0.2+7) OpenJDK 64-Bit Server VM (Red_Hat-19.0.2.0.7-1.rolling.el8) (build 19.0.2+7, mixed mode, sharing) + csc -version + head -n2 3.9.0-6.21124.20 (db94f4cc) + mono --version + head -n2 Mono JIT compiler version 6.12.0.158 (tarball Thu Oct 7 17:35:58 UTC 2021) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com + mcs --version + head -n2 Mono C# compiler version 6.12.0.158 + perl -version + head -n2 This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi + perl6 -version Welcome to Rakudo™ v2022.12-1-gd52342eb0. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.12. + php --version PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies + php7 --version PHP 8.2.4 (cli) (built: Mar 31 2023 09:45:30) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.4, Copyright (c) Zend Technologies + python2x --version Python 2.7.18 + python3 --version Python 3.11.2 + cat + python3 ver.py numpy: 1.24.2 scipy: 1.10.1 + pypy2 --version Python 2.7.18 (646866ee1eabe7bdbdc97b47a40b472991d571e9, Dec 29 2022, 08:10:18) [PyPy 7.3.11 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] + pypy3 --version Python 3.9.16 (feeb267ead3e6771d3f2f49b83e1894839f64fb7, Dec 29 2022, 14:23:21) [PyPy 7.3.11 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] + ruby --version ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x86_64-linux] + dmd --version DMD64 D Compiler v2.102.2 Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved written by Walter Bright + go version go version go1.20.2 linux/amd64 + go1.4 version go version go1.4.2 linux/amd64 + ghc --version The Glorious Glasgow Haskell Compilation System, version 9.6.1 + scalac -version Scala compiler version 3.2.2 -- Copyright 2002-2023, LAMP/EPFL + nim --version + head -n2 Nim Compiler Version 1.6.12 [Linux: amd64] Compiled at 2023-03-30 + rustc --version rustc 1.68.1 (8460ca823 2023-03-20) + kotlinc -version info: kotlinc-jvm 1.8.10 (JRE 19.0.2+7) + gosh -V Gauche scheme shell, version 0.9.12 [utf-8,pthreads], x86_64-pc-linux-gnu (version "0.9.12") (command "gosh") (scheme.id gauche) (languages scheme r5rs r7rs) (encodings utf-8) (website "https://practical-scheme.net/gauche") (build.platform "x86_64-pc-linux-gnu") (build.configure "--prefix=/gauche" "--enable-multibyte=utf-8") (scheme.path "/gauche/share/gauche-0.98/site/lib" "/gauche/share/gauche-0.98/0.9.12/lib") (gauche.threads pthreads) (gauche.net.tls) + crystal -v Crystal 1.7.3 [d61a01e18] (2023-03-07) LLVM: 13.0.1 Default target: x86_64-unknown-linux-gnu + ocamlfind ocamlopt -version 5.0.0 + fsharpc --help + head -n2 Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. + luajit -v LuaJIT 2.0.5 -- Copyright (C) 2005-2022 Mike Pall. https://luajit.org/ + gfortran --version + head -n2 GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18) Copyright (C) 2018 Free Software Foundation, Inc. + node --version v18.15.0 + /node-x64/bin/tsc --version Version 5.0.2 + swift --version Swift version 5.4.2 (swift-5.4.2-RELEASE) Target: x86_64-unknown-linux-gnu + sbcl --version SBCL 2.1.6 + vim --version + head -n2 VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Mar 30 2023 23:18:50) Included patches: 1-1430 + bash --version + head -n2 GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. + cat --version + head -n2 cat (GNU coreutils) 8.30 Copyright (C) 2018 Free Software Foundation, Inc. + elixir -v Erlang/OTP 25 [erts-13.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns] Elixir 1.14.3 (compiled with Erlang/OTP 25) + /KuinInKuin/build/kuin -v Kuin Programming Language v.2021.9.17 (C)Kuina-chan + nasm -v NASM version 2.15.03 compiled on Nov 16 2020 + echo '' + clay + sed -n 9p // cLay version 20221230-1 + wspace + head -n2 wspace 0.3 (c) 2003 Edwin Brady ------------------------------- + clang++ --version clang version 13.0.0 (https://github.com/apple/llvm-project.git f0fb631dd1a3a2988b23ba5057cd9106713cd0b4) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin