This repository contains yearly editions of our college's programming contest (interfatecs.com.br). Each edition includes the official problem set in PDF format and a set of sample input/output test cases for every problem, to be used with a judge script.
- Navigate to the
testsetfolder of the desired edition (optional):
cd YYYY_faseN/testset- Run the judge script with your solution file:
./judge.sh mysolution.extWARNING: By default, this will delete
mysolution.extfile. This is standard behavior in judging scripts, to prevent competitor's files from accumulating in thetestsetfolder.Replace
mysolutionwith the actual problem name andextwith actual extension (e.g.,themayans.cpp,triangulo.py, etc.).
-kor--keep: Prevents removal of supplied solution file../judge.sh mysolution.ext -k
- Haskell (
.hs) - C (
.c) - C++ (
.cpp) - Java (
.java) - Python (
.py) - JavaScript (Node.js) (
.js)
Note: To run the judge successfully, your system must have the corresponding compiler or interpreter installed and available in the system PATH.
| Language | Required Tool |
|---|---|
| C | gcc |
| C++ | g++ |
| Java | javac and java |
| Python | python3 or python |
| JavaScript | node |
| Haskell | ghc |
Note: Interfatecs currently only allows use of C, C++, Java and Python. Support for Haskell and Javascript in this repository was added for training and learning purposes.
Feel free to contribute by adding future editions, adding solutions, improving test coverage or fixing bugs. Please refer to Contribution Guidelines