Kokos's blog

By Kokos, history, 4 years ago, In English,

Hi all, I just released first version of cf — tool for submitting code from command line. Usage is in readme on github: https://github.com/Komosa/cf

why? all existing solutions was written in python/ruby, and I think that such a tool shouldn't depend on them. It is also up to date with current page layout/api.

Feel free to discuss here, but if you find any bugs or want new features, please (also) fill issue on github.

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

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

Hi, new version is released. It is battle tested in regular contest now.

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

Thanks for making this! Can we use it to submit to gym?

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

    Not yet, I will add it soon.

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

    I just published new version. I correctly submitted code to one of past/finished gyms with it.

    Could you please check if it matches your expectations? Just use gym number in place of contest/problem code. (It could be found in all links to gym problems/problemsets, and should be larger than 100000).

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

Can I use this with cygwin? How?

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

    If you don't mind using precompiled binary, I think that version build for windows and placed in appropriate location (aka PATH) should work. Did you tried that?

»
6 weeks ago, # |
  Vote: I like it +10 Vote: I do not like it

Can you provide the link for the documentation of the submission API which was used?

  • »
    »
    6 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    No particular official cofeforces.com API was used, I don't even know if it was available at the time of creation.

    During development, I just looked up all needed URLs, that was typical way of doing that kind of software (at least for me ;)) Looking at the code, URL for submission is http://codeforces.com/contest/675/submit?csrf_token=03110b969ffffff36c768b25efa1b3b1 with appropriate details (contest id, CSRF token value).

    I didn't used the site (and thus my wrapper) over 3 years now.

    If you (or anyone reading) have any recent experience with this tool, please let me know — I could fix any compatibility issues or add note that it is obsolete (depending on level of discrepancy). If you are into golang programming, I will be also happy to accept any GH' PRs.