Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Variables Reference

Adithya Dsilva edited this page May 9, 2020 · 1 revision

Codeforces Tool supports variable substitution in template scripts and template source files. Currently, only a fixed set of variables are supported, which have syntax ${variableName}

Predefined Variables

The following variables are currently supported:

Variable Name Description
${handle} Username of currently logged in user session
${date} DD-MM-YY format of present date
${time} HH:MM:SS format of current (local) time
${contest} The contest id parsed from command arguments / folder path / URL
${problem} The problem id parsed from command arguments / folder path / URL
${group} The group id parsed from command arguments / folder path / URL
${contClass} The class of the contest (contest / gym / group)
${file} file you wish to test / submit
${fileBase} file (without extension) you wish to test / submit
Clone this wiki locally