- 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.cppfile - Modify
hack.pyfile 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.txtandFiles/out.txt
- Testcase generator is written in
c++, you can also use other language but make sure to modifyhack.pyaccordingly. - Give a star⭐️ & Follow ;)

