Crosspiece's blog

By Crosspiece, history, 6 weeks ago, translation, In English,

Good night / dawn / morning / day / sunset / evening / night Codeforces! The other day, it became interesting how you can speed up the writing of codes using the definition and all sorts of useful functions in C ++ to increase your performance during contests, who can advise what?

And it is also interesting on which program is best to write (for example Codeblocks, VS ...).

Thank you all in advance for the answers and all the good mood)

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

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

Auto comment: topic has been translated by Crosspiece (original revision, translated revision, compare)

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

IMO if you are training for some onsite contest it's always good to train on whatever IDEs that contest allows, and in that case it's better not to use a template, or at least use a short one that you can quickly write at the beginning of the contest.

Otherwise I think Visual Studio is really nice (best debugger I've seen in the IDEs I've tried), not sure about templates because I don't use one.

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

Codeblocks easier to use, i recommend it. If you looking for defines search in codes of pros.

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

how you can speed up the writing of codes using the definition and all sorts of useful functions in C ++

From Google

wait... what?

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

I found that VS snippets are useful https://docs.microsoft.com/en-us/visualstudio/ide/code-snippets?view=vs-2017

You type # and first chars of snippet name (like #tie for cin.tie(0); cin.sync_with_stdio(false);), then press Tab, and code replaces it, with defined cursor position after replace.

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

one word: bitset

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

I'm currently using VSCode, and was developing an extension to compete easily in this editor. It is currently Work in Progress, but you can try it. Several features are missing, I plan to improve it soon! With your feedback I can make a better tool ;)

Find it in the marketplace as acmX. Marketplace or Github

  • »
    »
    6 weeks ago, # ^ |
    Rev. 2   Vote: I like it +8 Vote: I do not like it

    Hi marX. I already have installed your extension, but I got a problem. When I try to run my current solution, I get the message: "No active problem". This is my first time using VSCode.

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

      Open sol.cpp file, and try to run your solution.

      Anyway I created this group in Telegram so we can discuss it better if you have other issues.

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

I started using Vim, and even though looks really complex at the beginning, it is really nice end efficient. There are many plugins available and it is fully customizable. Once you learn the basic shortcuts, you won't ever use the arrow keys again!