ルール

参加資格

プログラミングに興味がある人なら誰でも参加できます。

人数

AtCoder Beginner/Regular/Grand Contest は個人で戦う必要があります。2人以上で結託し、解答する行為は禁止しております。

勝敗

制限時間以内に1問でも多く解いた人が優勝です。正答数が同じ場合は早く解いた人の方が上の順位になります。

ペナルティ

不正解を提出するごとにつき、あなたの提出時間にペナルティがつきます。

注: ジャッジのステータスがコンパイルエラー(CE)のときはペナルティがつきません

時間 = 最後に正解した時間 + (正解するまでに提出した)不正解の数*5分

以下に例を挙げます。

時間[分:秒]状態
04:33A 正解
10:22B 不正解
11:03B 正解
CとDは提出せず

この場合、最終スコアは2問正解で時間は16:03(11:03 + 5:00)となります


「(正解するまでに提出した)不正解の数」 とは以下の例を考えるとわかりやすいかもしれません。

時間[分:秒]状態
02:05A 正解
10:56B 正解
31:03C 不正解
45:37C 不正解
51:43C 不正解
88:22D 正解

この場合、最終スコアは3問正解で時間は88:22となります。

C問題で3回不正解を出してますが、結局C問題を正解することはできなったので、ペナルティは加算されません。

言語

問題を解くためのプログラミング言語はAtCoderのシステムが対応しているものに限ります。以下は対応している言語を表にしたものです。

Language言語Compile/Interpreterコンパイル・インタプリタExecution Command実行方法
C++14 (GCC 5.4.1)g++ -std=gnu++1y -O2 -I/opt/boost/gcc/include -L/opt/boost/gcc/lib -o a.out Main.cppa.out
Bash (GNU bash v4.3.11)cat Main.sh | tr -d '\r' >a.outbash a.out
C (GCC 5.4.1)gcc -std=gnu11 -O2 -o a.out Main.c -lma.out
C (Clang 3.8.0)clang -O2 Main.c -o a.out -lma.out
C++ (GCC 5.4.1)g++ -std=gnu++03 -O2 -I/opt/boost/gcc/include -L/opt/boost/gcc/lib -o a.out Main.cppa.out
C++ (Clang 3.8.0)clang++ -I/usr/local/include/c++/v1 -L/usr/local/lib -I/opt/boost/clang/include -L/opt/boost/clang/lib -std=c++03 -stdlib=libc++ -O2 -o a.out Main.cppa.out
C++14 (Clang 3.8.0)clang++ -I/usr/local/include/c++/v1 -L/usr/local/lib -I/opt/boost/clang/include -L/opt/boost/clang/lib -std=c++14 -stdlib=libc++ -O2 -o a.out Main.cppa.out
C# (Mono 4.6.2.0)mcs -warn:0 -o+ -r:System.Numerics Main.csmono Main.exe
Clojure (1.8.0)echojava -cp /opt/clojure/clojure-1.8.0.jar clojure.main Main.clj
Common Lisp (SBCL 1.1.14)echosbcl --script Main.lisp
D (DMD64 v2.070.1)dmd -m64 -w -O -release -inline Main.dMain
D (LDC 0.17.0)ldc2 -O Main.d -of a.outa.out
D (GDC 4.9.4)gdc-4.9 -O2 -frelease -o a.out Main.da.out
Fortran (gfortran v4.8.4)gfortran -O2 -o a.out Main.f08a.out
Go (1.6)go build -o a.out Main.goa.out
Haskell (GHC 7.10.3)ghc -o a.out -O2 Main.hsa.out
Java7 (OpenJDK 1.7.0)/usr/lib/jvm/java-7-openjdk-amd64/bin/javac Main.java/usr/lib/jvm/java-7-openjdk-amd64/bin/java Main
Java8 (OpenJDK 1.8.0)/usr/lib/jvm/java-8-openjdk-amd64/bin/javac Main.java/usr/lib/jvm/java-8-openjdk-amd64/bin/java Main
JavaScript (node.js v5.12.0)echonode Main.js
OCaml (4.02.3)bash -c 'eval $(opam config env) ocamlfind ocamlopt -o a.out Main.ml -linkpkg -thread -package str,num,threads,batteries'a.out
Pascal (FPC 2.6.2)fpc -O2 -Sd -Sh -oa.out Main.pasa.out
Perl (v5.18.2)perl -W -c Main.plperl -X Main.pl
PHP (5.6.30)php5.6 -l Main.phpphp5.6 Main.php
Python2 (2.7.6)echopython -B Main.py
Python3 (3.4.3)echopython3 -B Main.py
Ruby (2.3.3)ruby2.3 --disable-gems -w -c Main.rbruby2.3 --disable-gems Main.rb
Scala (2.11.7)scalac -optimise Main.scalascala Main
Scheme (Gauche 0.9.3.3)echogosh Main.scm
Text (cat)cat Main.txt | tr -d '\r' >a.outcat a.out
Visual Basic (Mono 4.0.1)vbnc /noconfig /r:Accessibility.dll /r:System.dll /r:System.Data.dll /r:System.Xml.dll /r:System.Core.dll /r:System.Numerics.dll /r:System.Configuration.dll /r:System.Xml.dll /imports:System /imports:Microsoft.VisualBasic /OptionExplicit+ /removeintchecks+ /optimize+ /debug- Main.vbmono Main.exe
Objective-C (GCC 5.3.0)gcc -O2 Main.m -o a.out -lobjc -lgnustep-base -I/usr/include/GNUstep -fconstant-string-class=NSConstantStringa.out
Objective-C (Clang 3.8.0)clang -O2 Main.m -o a.out -lobjc -lgnustep-base -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include/ -I/usr/include/GNUstep -fconstant-string-class=NSConstantStringa.out
Swift (swift-2.2-RELEASE)swiftc -o a.out Main.swifta.out
Rust (1.15.1)rustc -O -o a.out Main.rsa.out
Sed (GNU sed 4.2.2)cat Main.sed | tr -d '\r' >a.outsed -f a.out
Awk (mawk 1.3.3)cat Main.awk | tr -d '\r' >a.outawk -f a.out
Brainfuck (bf 20041219)cat Main.bf | tr -d '\r' >a.outbf a.out
Standard ML (MLton 20100608)mlton -output a.out Main.mla.out
PyPy2 (5.6.0)echopypy Main.py
PyPy3 (2.4.0)echopypy3 Main.py
Crystal (0.20.5)crystal build Main.crMain
F# (Mono 4.0)fsharpc Main.fsmono Main.exe
Unlambda (0.1.3)cat Main.unl | tr -d '\r' >a.outsh -c 'cat a.out - | unlambda'
Lua (5.3.2)luac -o luac.out Main.lualua luac.out
LuaJIT (2.0.4)luajit -O3 -b Main.lua luac.outluajit -O3 luac.out
MoonScript (0.5.0)moonc -o a.out Main.moonmoon Main.moon
Ceylon (1.2.1)ceylon compile --source=. Main.ceylonceylon run --run main default
Julia (0.5.0)echojulia Main.jl
Octave (4.0.2)echooctave --jit-compiler Main.m
Nim (0.13.0)nim c -d:release -o:a.out Main.nima.out
TypeScript (2.1.6)tsc Main.tsnode Main.js
Perl6 (rakudo-star 2016.01)perl6 -W -c Main.p6perl6 Main.p6
Kotlin (1.0.0)kotlinc Main.kt -include-runtime -d Main.jarkotlin -classpath Main.jar MainKt
PHP7 (7.0.15)php7.0 -l Main.phpphp7.0 Main.php

ライブラリ

対象言語ライブラリ名補足
C++(g++/clang++)Boostバージョン: 1.60.0
Python2numpyapt-get install python-numpy で入るもの
Python2scipyapt-get install python-scipy で入るもの
Python2? Python3?scikitsapt-get install python-scikits-learn で入るもの
Python3numpyapt-get install python3-numpy で入るもの
Python3scipyapt-get install python3-scipy で入るもの
SwiftFoundationバージョン: swift-2.2-SNAPSHOT-2016-01-11-a
SwiftXCTestバージョン: swift-2.2-SNAPSHOT-2016-01-11-a
環境

開発環境、エディタはお好きなものをご利用ください。

また、コンテスト中の

  1. 自作ライブラリの使用
  2. インターネットでの検索

を認めております。ただし、後述にもあるように、ネタバレ行為は禁止しておりますのでお気をつけ下さい。

その他

コンテスト中にネット上で問題のネタバレはご遠慮ください。また、他社サービスを使っての実況行為もネタバレにつながる可能性がございますのでご遠慮ください。

AtCoderのシステムに攻撃を加えることは禁止しております。詳しくは利用規約をご参照ください。


Rules

Eligibility

Anyone who is interested in programming can join

Team or Individual

You must compete in AtCoder Beginner/Regular/Grand Contest alone.We DO NOT allow you to team up form with others and answer the questions.

How we judge who the winner is

The contestant who gives successful solutions to the largest number of problems in a given time will be the winner. If there are multiple contestants who have solved the same number of problems, whoever has done so in shorter time will be in the higher place.

Penalty

Each time you submit a wrong answer, you will be penalized with penalty time.

NOTE: When Status of Judging is CE (compile error,) you will not be penalized.

Time = Time spent on the last problem you solved + the number of times you have submitted wrong answers until you solved the problem \times 5 minutes

The following is an example.

Time [minute: second]Status
04:33A CORRECT
10:22B WRONG
11:03B CORRECT
C and D were not submitted

In this case, your ultimate score is 2 correct answers and Spent Time is 16:03(11:03 + 5:00).


Just to make sure, we will give you another example of "the number of times you have submitted wrong answers until you solved the problem" here.

Time [minute: second]Status
02:05A CORRECT
10:56B CORRECT
31:03C WRONG
45:37C WRONG
51:43C WRONG
88:22D CORRECT

In this case, the ultimate score is 3 correct answers and Spent Time is 88:22.

Although you have submitted wrong answers 3 times to the problem C, you did not submit the correct answer.Therefore, the penalty time will not be accumulated to the problem C.

Language

The list below is programming languages supported by AtCoder system. Please solve the problem using a supported language.

Language言語Compile/Interpreterコンパイル・インタプリタExecution Command実行方法
C++14 (GCC 5.4.1)g++ -std=gnu++1y -O2 -I/opt/boost/gcc/include -L/opt/boost/gcc/lib -o a.out Main.cppa.out
Bash (GNU bash v4.3.11)cat Main.sh | tr -d '\r' >a.outbash a.out
C (GCC 5.4.1)gcc -std=gnu11 -O2 -o a.out Main.c -lma.out
C (Clang 3.8.0)clang -O2 Main.c -o a.out -lma.out
C++ (GCC 5.4.1)g++ -std=gnu++03 -O2 -I/opt/boost/gcc/include -L/opt/boost/gcc/lib -o a.out Main.cppa.out
C++ (Clang 3.8.0)clang++ -I/usr/local/include/c++/v1 -L/usr/local/lib -I/opt/boost/clang/include -L/opt/boost/clang/lib -std=c++03 -stdlib=libc++ -O2 -o a.out Main.cppa.out
C++14 (Clang 3.8.0)clang++ -I/usr/local/include/c++/v1 -L/usr/local/lib -I/opt/boost/clang/include -L/opt/boost/clang/lib -std=c++14 -stdlib=libc++ -O2 -o a.out Main.cppa.out
C# (Mono 4.6.2.0)mcs -warn:0 -o+ -r:System.Numerics Main.csmono Main.exe
Clojure (1.8.0)echojava -cp /opt/clojure/clojure-1.8.0.jar clojure.main Main.clj
Common Lisp (SBCL 1.1.14)echosbcl --script Main.lisp
D (DMD64 v2.070.1)dmd -m64 -w -O -release -inline Main.dMain
D (LDC 0.17.0)ldc2 -O Main.d -of a.outa.out
D (GDC 4.9.4)gdc-4.9 -O2 -frelease -o a.out Main.da.out
Fortran (gfortran v4.8.4)gfortran -O2 -o a.out Main.f08a.out
Go (1.6)go build -o a.out Main.goa.out
Haskell (GHC 7.10.3)ghc -o a.out -O2 Main.hsa.out
Java7 (OpenJDK 1.7.0)/usr/lib/jvm/java-7-openjdk-amd64/bin/javac Main.java/usr/lib/jvm/java-7-openjdk-amd64/bin/java Main
Java8 (OpenJDK 1.8.0)/usr/lib/jvm/java-8-openjdk-amd64/bin/javac Main.java/usr/lib/jvm/java-8-openjdk-amd64/bin/java Main
JavaScript (node.js v5.12.0)echonode Main.js
OCaml (4.02.3)bash -c 'eval $(opam config env) ocamlfind ocamlopt -o a.out Main.ml -linkpkg -thread -package str,num,threads,batteries'a.out
Pascal (FPC 2.6.2)fpc -O2 -Sd -Sh -oa.out Main.pasa.out
Perl (v5.18.2)perl -W -c Main.plperl -X Main.pl
PHP (5.6.30)php5.6 -l Main.phpphp5.6 Main.php
Python2 (2.7.6)echopython -B Main.py
Python3 (3.4.3)echopython3 -B Main.py
Ruby (2.3.3)ruby2.3 --disable-gems -w -c Main.rbruby2.3 --disable-gems Main.rb
Scala (2.11.7)scalac -optimise Main.scalascala Main
Scheme (Gauche 0.9.3.3)echogosh Main.scm
Text (cat)cat Main.txt | tr -d '\r' >a.outcat a.out
Visual Basic (Mono 4.0.1)vbnc /noconfig /r:Accessibility.dll /r:System.dll /r:System.Data.dll /r:System.Xml.dll /r:System.Core.dll /r:System.Numerics.dll /r:System.Configuration.dll /r:System.Xml.dll /imports:System /imports:Microsoft.VisualBasic /OptionExplicit+ /removeintchecks+ /optimize+ /debug- Main.vbmono Main.exe
Objective-C (GCC 5.3.0)gcc -O2 Main.m -o a.out -lobjc -lgnustep-base -I/usr/include/GNUstep -fconstant-string-class=NSConstantStringa.out
Objective-C (Clang 3.8.0)clang -O2 Main.m -o a.out -lobjc -lgnustep-base -I/usr/lib/gcc/x86_64-linux-gnu/4.8/include/ -I/usr/include/GNUstep -fconstant-string-class=NSConstantStringa.out
Swift (swift-2.2-RELEASE)swiftc -o a.out Main.swifta.out
Rust (1.15.1)rustc -O -o a.out Main.rsa.out
Sed (GNU sed 4.2.2)cat Main.sed | tr -d '\r' >a.outsed -f a.out
Awk (mawk 1.3.3)cat Main.awk | tr -d '\r' >a.outawk -f a.out
Brainfuck (bf 20041219)cat Main.bf | tr -d '\r' >a.outbf a.out
Standard ML (MLton 20100608)mlton -output a.out Main.mla.out
PyPy2 (5.6.0)echopypy Main.py
PyPy3 (2.4.0)echopypy3 Main.py
Crystal (0.20.5)crystal build Main.crMain
F# (Mono 4.0)fsharpc Main.fsmono Main.exe
Unlambda (0.1.3)cat Main.unl | tr -d '\r' >a.outsh -c 'cat a.out - | unlambda'
Lua (5.3.2)luac -o luac.out Main.lualua luac.out
LuaJIT (2.0.4)luajit -O3 -b Main.lua luac.outluajit -O3 luac.out
MoonScript (0.5.0)moonc -o a.out Main.moonmoon Main.moon
Ceylon (1.2.1)ceylon compile --source=. Main.ceylonceylon run --run main default
Julia (0.5.0)echojulia Main.jl
Octave (4.0.2)echooctave --jit-compiler Main.m
Nim (0.13.0)nim c -d:release -o:a.out Main.nima.out
TypeScript (2.1.6)tsc Main.tsnode Main.js
Perl6 (rakudo-star 2016.01)perl6 -W -c Main.p6perl6 Main.p6
Kotlin (1.0.0)kotlinc Main.kt -include-runtime -d Main.jarkotlin -classpath Main.jar MainKt
PHP7 (7.0.15)php7.0 -l Main.phpphp7.0 Main.php

ライブラリ

対象言語ライブラリ名補足
C++(g++/clang++)Boostバージョン: 1.60.0
Python2numpyapt-get install python-numpy で入るもの
Python2scipyapt-get install python-scipy で入るもの
Python2? Python3?scikitsapt-get install python-scikits-learn で入るもの
Python3numpyapt-get install python3-numpy で入るもの
Python3scipyapt-get install python3-scipy で入るもの
SwiftFoundationバージョン: swift-2.2-SNAPSHOT-2016-01-11-a
SwiftXCTestバージョン: swift-2.2-SNAPSHOT-2016-01-11-a
Environment

You may use any development environment and editor at your choice.

Also, you are allow to do the following:

  1. Use of original libraries
  2. Web Search

As mentioned later, please note that we do not allow you to disclose the problem to other sources.

Other Rules

Do not disclose the problem on the Internet during the contest. Also refrain from reporting the contest on the spot as it might lead to the disclosure of the problem.

You are not allowed to attack AtCoder system. For more info, please refer our User Policy.