CIXTEEN's blog

By CIXTEEN, history, 23 hours ago, In English

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!

  • Vote: I like it
  • +39
  • Vote: I do not like it

»
23 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by CIXTEEN (previous revision, new revision, compare).

»
21 hour(s) ago, # |
  Vote: I like it +5 Vote: I do not like it

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

  • »
    »
    21 hour(s) ago, # ^ |
      Vote: I like it +16 Vote: I do not like it

    Glad that you found that feature helpful!

    And yeah, I'm a big Arcane fan, excited for season 2!

»
17 hours ago, # |
  Vote: I like it +5 Vote: I do not like it

This seems helpful and great.Thank you for your effort; the tools look amazing!

»
16 hours ago, # |
  Vote: I like it +8 Vote: I do not like it

This is cool

»
13 hours ago, # |
  Vote: I like it +5 Vote: I do not like it

for me its not working because of cloudfare i think, any way to bypass it?

  • »
    »
    5 hours ago, # ^ |
    Rev. 2   Vote: I like it +3 Vote: I do not like 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!