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 [Gitub Repo](https://github.com/C1XTEEN/CPIT). ↵
↵
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.↵
↵
![ ](/predownloaded/c7/0a/c70a4fa7fcd9f1a2921e2614c4df1258da885480.png)↵
↵
### 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). ↵
↵
![ ](/predownloaded/bb/25/bb253d02c3714f2131d24aa34914332e8c953206.png)↵
↵
![ ](/predownloaded/4b/03/4b03d2c4b082ba9549eee6b3cf8cc5e0b54f0d0b.png)↵
↵
### 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.↵
↵
![ ](/predownloaded/44/d4/44d4b6bb4e237111f57a636bf550a51c1e68d5d5.png)↵
↵
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!
↵
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 [Gitub Repo](https://github.com/C1XTEEN/CPIT). ↵
↵
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.↵
↵
![ ](/predownloaded/c7/0a/c70a4fa7fcd9f1a2921e2614c4df1258da885480.png)↵
↵
### 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). ↵
↵
![ ](/predownloaded/bb/25/bb253d02c3714f2131d24aa34914332e8c953206.png)↵
↵
![ ](/predownloaded/4b/03/4b03d2c4b082ba9549eee6b3cf8cc5e0b54f0d0b.png)↵
↵
### 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.↵
↵
![ ](/predownloaded/44/d4/44d4b6bb4e237111f57a636bf550a51c1e68d5d5.png)↵
↵
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!