- Python
- Colorama and Subprocess python package
- Compiler for your language (C, C++, Java or Python)
- Clone or Download this repository.
Files/correct.cpp
- your brute force approch or you can copy accepted code.Files/wrong1.cpp
,Files/wrong2.cpp
... the files you want to compare / check withFiles/correct.cpp
.- Generate testcase in
testcase.cpp
file - Modify
hack.py
file according to number of files ..
files = [
'./Files/wrong1.cpp',
'./Files/wrong2.cpp',
# './Files/wrong3.cpp',
]
- Run
python hack.py
- After getting wrong answer chekout
Files/in.txt
andFiles/out.txt
- Testcase generator is written in
c++
, you can also use other language but make sure to modifyhack.py
accordingly. - Give a star⭐️ & Follow ;)