|
6 years atrás | |
---|---|---|
.vscode | 6 years atrás | |
doc | 6 years atrás | |
images | 6 years atrás | |
notes | 6 years atrás | |
scripts | 6 years atrás | |
src | 6 years atrás | |
types | 6 years atrás | |
.gitattributes | 6 years atrás | |
.gitignore | 6 years atrás | |
.vscodeignore | 6 years atrás | |
CHANGELOG.md | 6 years atrás | |
LICENSE | 6 years atrás | |
README.md | 6 years atrás | |
package-lock.json | 6 years atrás | |
package.json | 6 years atrás | |
todo.md | 6 years atrás | |
tsconfig.json | 6 years atrás | |
tslint.json | 6 years atrás |
acmX is tool that empower contestants to solve competitive programming problems easily.
acmX have been designed to run automatically boilerplate actions I repeat often in competitive programming. Next is the expected pipeline to interact with it. It is important that you setup some configurations before start using the tool.
Open Visual Studio Code
Open online contest/problem you want to solve and click on competitive-companion extension button. All problems along with the testcases are downloaded and you are ready to code.
Start coding awesome solution inside file sol.cpp
.
After you finish call Run
and automatically your program will be compiled and run against every testcases. If the solutions is ok, it will be reported otherwise you will see failing testcase in a cool layout. You can always go back to original layout calling View: Code
.
Add more testcases than provided in statement using Add Test Case
, or modify and see existing testcases by calling Open Test Case
.
If your solution keep failing you can stress it using a generator and a brute solution. Call Upgrage
to create both generator (gen.py
) and correct (brute.cpp
) programs. Right now generator must be written in python. After both codes are ready call Stress
and your original code will be tested on random test cases from generator against correct solution.
The environment structure is the following:
round-525/
A/
sol.cpp
brute.cpp
gen.py
attic/...
testcases/
1.in
1.out
1.real
...
B/...
C/...
D/...
E/...
Certainly acmX can be (and hopefully will be) extended so that it fits everyones pipeline. If acmX almost fit yours, feel free to improve it and make a PR! I'll be happy to hear from you and give you support. If you find any issue report it at github issue tracker.
You need to tell acmX which folder are you going to use to save all the problems and contests. To do that:
Ctrl+,
acmx.configuration.solutionPath
/path/to/my/solutions
)Parsing problems and contests is done via Competitive-Companion extension. To use it with acmX
:
acmX
. If you want to use any other port, open settings and update acmx.companion.port
. This require to reset vscode to take effect. You should also change the port on the extension.I encourage everyone to read and change all settings before first use. Anyway, after updating acmx.configuration.solutionPath
it should work good for C++ users.
Create a file with your template. In settings, set acmx.configuration.templatePath
to the path to your template.
You can find this information for every supported platform here.
Yes, of course, and any other language you want. Just make sure to update your language configuration setting.
TODO: Coming soon. Read minitutorial on configuring custom checker.
Call this commands from the command pallete (Ctrl + Shift + P
).
Stress
.sol.cpp
..
cpp
for c++