Please subscribe to the official Codeforces channel in Telegram via the link: https://t.me/codeforces_official. ×

boleyn.su's blog

By boleyn.su, 5 years ago, In English,

Minutes ago, I read a post by banana, and thought that there might be other codeforces users who have the same need. I used to write a tool to download all my solutions, and I'd like to share with others.

Too use the tool, you need to download 1) dlls which contains cURL and boost 2) exe (click the button "Raw" to download)

Then put the dlls and the exe in a folder, run downloader.exe and input your handle, and then all last accepted solution will be download to this folder.

Source code of this tool can be found here.

If you have any problems using this tool, leave a comment or send me a message.

UPD0: Python version by imslavko (Thanks to GFW(something bad for Chinese), this link cannot be accessed directly for Chinese users. But you can view it with the help of a proxy however.)

UPD1: I am sorry that there is no boost or libcurl on my new laptop, so I think I will no longer update this tool. However, you can DIY as the source code is provided.

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

»
5 years ago, # |
  Vote: I like it +11 Vote: I do not like it

Happy to see that it is possible to do such things using cpp :)

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    Everything is possible using C++

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      ... but you'll need a lot of libs

»
5 years ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

Shameless plug: I have written such script in Python a while ago: link. And it is cross-platform :)

Edit: it might be slower but it's easier to get started, since the only thing you need is python 2.7, no messing around linking against boost whatsoever.

  • »
    »
    5 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I added your link to my post, and I have to say that it is possible to compile cRUL, boost and my code into a file but I didn't do it and it is also cross-platform. (cURL and boost are cross-platform. If you are using unix/linux you can compile the source yourslef.)

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it +8 Vote: I do not like it

      Don't get me wrong, you've done a great job, someone will need it and find your code one day! I am just saying it might be easier for someone to just run python script rather than compiling and linking against boost which is not a trivial task for someone who have never done it before. (not a problem for me though)

      • »
        »
        »
        »
        5 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        You too.

        I am just saying that C++ can also be cross-platform and C++ can be compile to a file that don't need extra *.dll or *.so so that a user who use C++ and read this post won't feel C++ is that bad.(I didn't feel so because I know C++ can be so powerful, but there might be someone didn't know.)

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Could you change cRUL to cURL

»
5 years ago, # |
  Vote: I like it +3 Vote: I do not like it

It does not work with proxy connection, how to fix it?

»
5 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Pascal solutions saves as java. Please fix it.
UPD. All unknown types saves as java.