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

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

today, i decided to quit codeforces. there was my olympiad exam where i couldnt get into the national team just becouse i gave INF=1e4 instead of 1e18.

Полный текст и комментарии »

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

Автор ilexis, история, 11 дней назад, По-английски

Hello everyone! In contests when i get the code wrong, one of the things that put me down is styling. In other words,the code works,sometimes,but when something goes wrong and i start debugging, it's very hard to read your own code under the contest conditions. There are lots of top-rated users who have well styled code (eg jiangly) and I just cant write like that.

Questions for you:

How do you manage to have clear variable names that are still easy to type? Do you make many macros/defines or is it a bad practice to do so? Do you have some tips on speeding up debugging process (I write lots of cerrs and doing so is pretty slow)?

Do you use auto-formatter or do manually all formatting? if you use one can you tell me the name or provide the link to it becouse i cant find one. Of course, in CP, clean code doesn't play an as big role as knowledge of algorithms, but I guess it may help me save my time and avoid bugs.

(also my dad said i am writing dirty code and gave me a total of 1000 pages of books about clean coding so i now have to write clean code too)

Полный текст и комментарии »

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

Автор ilexis, история, 2 недели назад, По-английски

Today, we had a div4 contest which a lot of cheaters participated which i expected and so i didnt went in rated for this round. Good thing i did because when i looked into standings i saw many cheaters there... but i have a question about the cheaters: why do one cheat? yes it is a simple but necessary question i ask every time i see someone cheat. The reason i ask this question is i think that when someone cheats i dont think they can get the satisfaction of success and if not satisfaction of success what is their motivation to cheat?

Полный текст и комментарии »

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