Блог пользователя ninja_28

Автор ninja_28, 5 лет назад, По-английски

Hi all, I have written a script which will let us submit our code on Codeforces through the terminal with just a single command to run the script.

I developed this script because it seemed too boring to me to go to the specific folder each time and then choose the file to submit. This script can instead directly submit the code by only specifying the problem code and file name to submit!

I have written this script in Python using selenium, and tested it for Chrome on Linux.

Installation instructions here.

I hope it would be helpful to you.
I appreciate your feedback!
Thank you!

  • Проголосовать: нравится
  • +56
  • Проголосовать: не нравится

»
5 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

Tried out just now, works as expected! Good job!

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится +24 Проголосовать: не нравится

Little bug:

l=len(problem)
part1 = problem[0:l-1]
part2 = problem[l-1:l]
st = part1 + '/' + part2
print('https://codeforces.com/problemset/problem/' + st)

(lines 33..37)

But problem names can be longer than 1 character. For example: 1165F1 - Microtransactions (easy version)

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    thanks alot for feedback. Now I have fixed the issue please again download the script from github link.

»
5 лет назад, # |
  Проголосовать: нравится +7 Проголосовать: не нравится

you may check this out.. https://github.com/xalanq/cf-tool

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

It gets logged out everytime

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

how to use in firefox?