A problem about the export of competition codes and my solution.

Revision en1, by Here-Yuzu, 2022-07-25 17:34:54

On occasion, I use the Group to organize competitions and use it to select excellent participants. However, in the process of using it, I found two problems.

  • It seems that only the contest creator export code, while the Group administrator does not have this function. The only difference between the following two contests is that in one of them I am not the creator, just a manager.

  • Another problem is that Codeforces' export code function is named after the submission ID. Another problem is that Codeforces' export code function is named after the submission ID. It is troublesome when you need to analyze the downloaded code files. Especially when I use tools like SIM or Jplag to check the code, I can't quickly see who the code with a high duplication rate comes from, and I need to click the links one by one to confirm.

Firstly, I went to Github to find out if there was an open-source solution. Most of the repositories on Github are downloading a user's AC code, downloading test data, or crawling PDF statements. But this is for downloading the official competition source code, have not yet seen the same.

So, to solve this problem I recently encountered, and to get started with Golang, I wrote my little tool to help me download the AC code of the official participants in a given race in a specified format. Here is my repository link, and I hope this little tool will help some of you who have the same problem as me.

Although in fact it's not an obvious problem, the process of solving it is interesting and that's enough.

Tags codeforces, contest, system

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Here-Yuzu 2022-07-25 17:37:14 230
en2 English Here-Yuzu 2022-07-25 17:35:21 0 (published)
en1 English Here-Yuzu 2022-07-25 17:34:54 1863 Initial revision (saved to drafts)