Skip to content

Automates the process of hacking solutions in Codeforces Educational rounds.

Notifications You must be signed in to change notification settings

h-sinha/Codeforces-Hacking-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeforces Hacking Script

Automates the process of hacking solutions in Codeforces Educational rounds.

Requirements

Refer to requirements.txt

How to use?

  • Enter your test case in input.txt.
    Note
    • Avoid using extra spaces/newline in the end
    • The maximum size of the test file can be 256KB due to upload limit on codeforces
  • Enter expected output in output.txt
  • If the problem requires custom checker(e.g.- Case insensitive) then update the Checker function in checker.py. The current checker does character by character matching.
  • Run the script using
python3 main.py
  • Enter your codeforces handle, password, contest id and problem id
Enter your handle/email = coder_h
Enter password = ************
Enter contest id = 1283
Enter problem id = C

How it works?

  • The script fetches all the accepted submissions for the problem.
  • Runs each code on the given test case using Codeforces' custom invocation.
  • Compares the expected output and output given by the code.
  • If the outputs don't match, the script hacks the solution.

Note

  • The script runs in background. If you wish to see how it actually works, comment line no. 20 in main.py.

About

Automates the process of hacking solutions in Codeforces Educational rounds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages