edsomjr / competitive-problems-tools Goto Github PK
View Code? Open in Web Editor NEWCompetitive problems formatter tools
License: GNU General Public License v3.0
Competitive problems formatter tools
License: GNU General Public License v3.0
Caso aconteça, os IDs dos testes devem ser reportados.
Colocar o nome correto da ferramente e as instruções básicas de instalação e uso.
-s
to the check
commandThis option should check all solutions defined in the config.json
file
Currently, the cp-tools check
command supports only the following flags:
-c / --checker
;-h / --help
;-t / --tests
;-v / --validator
;It is desirable that the cp-tools check -s
command validates all solutions defined in the file config.json
, in the key solutions: {}
. Currently, each solution must be checked with the command:
cp-tools judge solution.[cpp|java|py]
Remembering that there are several types of solutions (WA, AC, TLE, etc.), the validation of a solution depends on its type, for example, a positive validation of a TLE solution is one that does not pass the test set because it goes beyond the defined maximum time
judge
command to check each solution described in config.json
Os motivos de falha devem ser detalhados.
Esta opção indica qual é o arquivo .json com os metadados do problema.
The file .cp-tools-config.json
, which is usually present at the user's home directory, is not created during the command make install
.
There is also no template for this file as there is for the config.json
.
Embora rodem localmente, os testes não rodam no Travis, provavelmente por questões de permissão e ambiente. Verificar e corrigir.
Esta opção listará todas as classes de documento disponíveis. Estas classes ficarão armazenadas no diretório /usr/local/lib/cp-tools/classes.
This issue depends on the following issues:
-a
to the check
commandThe cp-tools check -a
command must validate all the solutions, tests, validators and checkers.
Currently, to validate each of these files, you need to run a specific command:
-c / --checker
for checkers-t / --tests
for tests-v / --validator
for validators-s / --solutions
for solutionsIt is desirable that the cp-tools check --all
command validates all of these files at once.
The file .cp-tools-config.json is not created on make install
.
I am curious to learn how to use the software, but I do not have much knowledge in the C ++ language to understand by reading the source code, but I would still like to use it.
It would be great if the man cp-tool
command worked, so that I would read the documentation through my terminal.
Usage documentation posted on other channels would also solve the problem
cp-tools genhtml
commandCurrently, cp-tools has the commands genpdf
and gentex
, where the files are compiled for PDF and LaTEX respectively.
It is desirable that the genhtml
command compiles the files into HTML files, so that the problem can be viewed in a browser
This CLI command should work in the same way as genpdf
and gentex
commands.
The parameters for this command are:
-h / --help
to print to the terminal the parameters supported by the command-b / --label
to define the problem labels. If omitted, the default label is A
-l / --list
to list all document classes (templates) available for use-c / --class
to define the class (template) of the document that will be used in the compilation. If omitted, the default template will be plain
-g / --lang
to define the language of the document. If omitted, the default language will be pt_BR
-o / --output
to define the name of the output file that will be generated. If omitted, the output file will be problem.html
-t / --tutorial
to generate the problem solution file (in html, of course)--no_autor
to omit the problem author in the output file--no_contest
to omit the problem contest in the output fileEverytime a command or subcommand is trying to find the right run
function it runs this same code:
if (argc >= 3) {
std::string command{argv[2]};
auto it = commands.find(command);
if (it != commands.end())
return commands[command](argc, argv, out, err);
}
This could be avoided by creating a function responsible for that.
This is now happening at cptools.cpp
only, but polygon pull/push
subcommand will have the same code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.