Hi everyone!
I've been doing competitive programming for a while, and in that time, I've created different tools to help streamline my process. I have decided to release them publicly so that others can also use these tools, and I hope that some might find them helpful! This tool was mainly designed for the Codeforces platform and for C++ users, so some features might not work for other environments. To see the full description and instructions/installation, check out out the GitHub Repo.
Here is a preview for some of the tools provided:
Automatically test your code against samples
One of the cool features about this tool is the ability to test your code on sample test cases. Specifically, this tool will automatically check all files with .in
and .out
extensions in the directory you are currently in, then run those samples against your code, and print out any differences between your code's output and the expected sample output.
Parse sample input/output files from Codeforces
To pair with this feature, I also created another feature to parse the sample input/outputs on a Codeforces webpage, then download them locally into .in
and .out
files that can then be used with the previous checker
command. On top of an individual problem, this feature can also parse all the problems of a contest, creating a subdirectory for each problem, with the corresponding sample input/outputs in that subdirectory (note: the parser seems to have trouble when Codeforces uses Cloudflare during contests, but this doesn't stop you from manually creating the .in
and .out
files if needed).
Get the rating of Codeforces problems
Another small tool is the ability to get the rating of a Codeforces problem in the terminal. Personally, I disable tags in Codeforces problems, which also includes the rating tag. This feature allows me to continue to disable tags, but be able to get the rating if I want to see it.
Thanks for reading, and I hope you find this tool helpful! I hope to continue improving CPIT and provide more features/tools to enhance convenience in competitive programming. Some ideas I have are adding support for different platforms and languages outside of C++, and fixing parsing issues when Codeforces uses Cloudflare during contests. I'm also to any other suggestions, so please let me know if you have any feedback!
Auto comment: topic has been updated by CIXTEEN (previous revision, new revision, compare).
I just downloaded. I am going to use this just for rating because I hate being spoiled by tags so I close them but now I cant see rating
Also good pfp! Good to see another arcane fan
Glad that you found that feature helpful!
And yeah, I'm a big Arcane fan, excited for season 2!
This seems helpful and great.Thank you for your effort; the tools look amazing!
Happy to hear you like it!
This is cool
Thanks! golions orz
for me its not working because of cloudfare i think, any way to bypass it?
Yes, I think you are right. Something relating to the way Codeforces or Cloudflare is handling web requests. I'll look to see if there is any way to bypass this or other packages. Thanks for bringing this up!
Edit: I updated the tool to use the cloudscraper package, which I believe should fix the issue. Please let me know if you still have any problems. Thanks!
Its working fine now, Thanks for sharing it! CIXTEEN orz