---
# acick config file
#
# For details, see
# https://docs.rs/acick-config/{version}/acick_config/

# Version of acick that generated this config file.
version: {version}
# Shell used to compile the source code or to run the binary. [c]
shell: [{bash}, "-eu", "-c", "{{{{ command }}}}"]
# Path at which the problems fetched from service are saved. [t, s]
problem_path: "{{{{ service }}}}/{{{{ contest }}}}/{{{{ problem | lower }}}}/problem.yaml"
# Directory in which the testcase files downloaded from AtCoder are saved. [t, s]
testcases_dir: "{{{{ service }}}}/{{{{ contest }}}}/{{{{ problem | lower }}}}/testcases"

# Session that communicates with service.
session:
  timeout: 30s
  retry_limit: 4
  retry_interval: 2s

# Configs for each service
services:
  # Config for AtCoder (https://atcoder.jp)
  atcoder:
    # Names of language as which your source code is submitted to the service.
    # The acick command will use the languages in the order specified in the list
    # and use the first one that is available on the service.
    # See https://atcoder.jp/contests/practice/rules for full list of available language names.
    lang_names:
      - C++ (GCC 9.2.1)
      - C++14 (GCC 5.4.1)
    # Directory where compile and run commands are executed. [t, s]
    working_dir: "{{{{ service }}}}/{{{{ contest }}}}/{{{{ problem | lower }}}}"
    # Path of your source code. [t, s]
    source_path: "{{{{ service }}}}/{{{{ contest }}}}/{{{{ problem | lower }}}}/Main.cpp"
    # Shell script to compile your source code. [t]
    compile: set -x && g++ -std=gnu++17 -Wall -Wextra -O2 -o ./a.out ./Main.cpp
    # Shell script to run the binary built with the compile script. [t]
    run: ./a.out
    # Template for source code. [p]
    template: |
      /*
      [{{{{ contest.id }}}}] {{{{ problem.id }}}} - {{{{ problem.name }}}}
      */

      #include <iostream>
      using namespace std;

      int main() {{
          return 0;
      }}
