Offline Judge for Topcoder
to run this tool, you need install packages required. it will install package httpx
and beautifulsoup
pip install -r requirements.txt
load your topcoder account info for 'username' and 'password' field of data in OfflineJudge.py
find your problem's statistics on competitiveprogramming, it will looks like this
write your code in main.cpp and make sure you main() function meets the pattern.
for following definition
you should make main() function exactly equals these lines.
int main() {
TypoCoderDiv1 sol;
cout << sol.getmax(${input}) << "\n";
}
it's all, just run python OfflineJudge.py
to see if your code could pass system test.
feel free to make code for your usage preferences!
my demo for problem TypoCoderDiv1, test cases from this page
- to reuse the test cases file instead of fetching data everytime
- only compile once. important!