gech_guy's blog

By gech_guy, history, 3 years ago, In English

HI, codeforces, I am an aspiring programmer, eager to gain knowledge. I want to know name of those coders who write neat codes, without macros and very reading friendly in c++. I have got one for that and he is rajat1603. I would like to know some more coders of this type, so that I can read thier code and understand whenever I feel that editorial is difficult to understand. Please do help.

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

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

My code.

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

Um_nik , Haghani and guys from USACO like pacu and others like most elegant codes I have ever seen.

»
3 years ago, # |
  Vote: I like it +2 Vote: I do not like it
»
3 years ago, # |
  Vote: I like it -6 Vote: I do not like it

Haha we should write a NN to do this xD

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

What will you do then, browse through submissions to find your person who's on your list, instead look over to any randon guy who solved that problem in your preferred language by filtering it. In comments community provides different explanation that might help you. Hope it helps!

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

    If I would make them friends, I can directly see thier codes without searching where his code exist.

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

Benq writes clean code!

  • »
    »
    6 months ago, # ^ |
      Vote: I like it +13 Vote: I do not like it

    If you understand R0F and F0R and FOR in his templates then maybe ;)

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

Alpha_Q.
You may like to checkout his code repository — GitHub/CoolestCodeLibrary . Coolest codes I've seen.

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

Despite of being cyan, some of my friends say I write elegant code. I hope you can learn something new from my code.

  • »
    »
    21 month(s) ago, # ^ |
    Rev. 3   Vote: I like it +20 Vote: I do not like it
    while (skolkim_dolboebam_nravjatsa_ubogie_zadachi_na_grafi < i)
    {
    	indeks_raschitivanija_pidarasov++;
    	skolkim_dolboebam_nravjatsa_ubogie_zadachi_na_grafi += ocherednoj_ubogij_masiv[indeks_raschitivanija_pidarasov];
    }
    

    Wow. It's nice that you avoid using useless 2-letter variable names, but this is equally bad, I wouldn't call that "elegant"...

»
3 years ago, # |
  Vote: I like it -18 Vote: I do not like it
»
3 years ago, # |
Rev. 2   Vote: I like it -34 Vote: I do not like it

Dear gech_guy,

You are welcome to read my code.

I do strive to write clean, fast and memory efficient code for each problem, regardless of how many problems are submitted and accepted during each contest.

Best wishes,

P.S. For those who may think that the writer of this comment has an "ego" problem: please calm down and focus on improving your programming skills. He is just trying to help. Thank you.

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

    meaning("the writer of this comment") == meaning("I").

    This shows you unnecessarily complicate things, hence your code is also probably unnecessarily complicated.

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

      Your right to interpret the calming down P.S. to the contrary of what it was meant to be is respected.

      Readable, fast, and memory efficient code does not have to be the simplest and the least complicated.

      Thanks and best wishes.

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

        Out of curiosity, why are you referring to yourself in third person? How many people have access to this account? :P

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

          Dear 1-i

          Thanks for trying to comprehend the reason for not using the pronoun "I" in the P.S. It is hoped that the unrevealed reason is appreciated.

          RE: How many people have access to this account?

          The submissions page of this account is accessible in the public domain without logging in to Codeforces. Therefore, it is assumed that all members of Codeforces have access to it.

          If you mean by "access" having the account password, not just reading the submissions page, the account password has not been shared with anyone. Nonetheless, unauthorized access through hacking the account password is possible no matter how very unlikely.

          Thanks again and best wishes.

»
3 years ago, # |
Rev. 2   Vote: I like it -15 Vote: I do not like it
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
3 years ago, # |
Rev. 2   Vote: I like it -7 Vote: I do not like it

tourist, dotorya You should check out the top coders

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

dotorya has the most concise code I've ever seen.

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

    I've used I_love I_love_Tanya_Romanova 's code for working through problems I struggle with before. It was neat enough that it helped. Haven't tried reading too many other people's code.

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

adamant, I think

»
21 month(s) ago, # |
  Vote: I like it +21 Vote: I do not like it

Personally, I find neal's code to be very easy to read; it's not always the most concise, but it's typically very easy to understand every part of the code. Very useful to refer to when I wanted to look at implementations for difficult problems.

»
21 month(s) ago, # |
  Vote: I like it +11 Vote: I do not like it
»
21 month(s) ago, # |
  Vote: I like it -13 Vote: I do not like it

You'll never learn how to hack code during a contest if you'll only be able to read codes that are, "without macros and very reading friendly in c++".

Prefer a tougher road to learn something more, rather than the easy ones.

All the best.

»
21 month(s) ago, # |
  Vote: I like it +8 Vote: I do not like it

summitwei writes the best code I have ever seen :o

»
21 month(s) ago, # |
  Vote: I like it +19 Vote: I do not like it

You should check out codes of cerberus97. He writes such beautiful codes.

»
21 month(s) ago, # |
  Vote: I like it +12 Vote: I do not like it
»
21 month(s) ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

ajinkya1p3 submissions looks very neat and easy to understand.

»
8 months ago, # |
Rev. 4   Vote: I like it 0 Vote: I do not like it

py_ultron has the best clean codes I have ever seen for newer coders who have just started with cp! :)

»
8 months ago, # |
  Vote: I like it +11 Vote: I do not like it

neal's codes are perfect

»
7 months ago, # |
Rev. 2   Vote: I like it +10 Vote: I do not like it

Any coder other than neal who writes codes without macros and best naming of variables?

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

mango_lassi

He writes a neat implementation along with comments most of the time.

»
7 months ago, # |
  Vote: I like it +10 Vote: I do not like it

ecnerwala. I like his clean code and assert statements because they clearly indicate what his expectations are about the state of the program at that point.

»
7 months ago, # |
  Vote: I like it +14 Vote: I do not like it
»
7 months ago, # |
  Vote: I like it +12 Vote: I do not like it

In my opinion Ashishgup , codelegend , cerberus97 , ajinkya1p3 , amnesiac_dusk , Errichto , tourist , Um_nik , mnbvmar. all of these geeks write very neat and clean code. I personally refer Ashishgup 's code.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it
»
7 months ago, # |
  Vote: I like it +10 Vote: I do not like it

wucstdio He writes most neat codes and without macros.

»
7 months ago, # |
  Vote: I like it 0 Vote: I do not like it
»
6 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Any legend other than mango_lassi, neal, tourist with intuitive variable names & without macros?

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

    Why doesn't he use "namespace std" ?

    I've seen many people do this.. why ?

»
6 months ago, # |
  Vote: I like it -16 Vote: I do not like it

Lol, the guy you mentioned (rajat) writes awfull code. 8 spaces — 2 tabs, no space between bracket and parentheses in a function name, not following the standard for naming function but instead naming them "addline" etc.

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

    Triggered Indians lol

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

      No, you are just wrong.

      The guy uses tab characters instead of space characters. On his editor, it shows 1 tab = 4 spaces, but on Codeforces 1 tab = 8 spaces. Others' codes have exactly 4 spaces on Codeforces (like mine) because they use spaces instead of tabs.

      For such short function names, I still think they are easy to understand without following the standard. We are doing CP, not project developing, so I don't think we should be that strict.

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

I feel tmwilliamlin168 codes damn neat and easy to understand

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

I think Errichto writes neat and clean code.

»
6 months ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it

AshishGup and Cerberus97 have very clean codes. I refer there codes when I have a doubt about implementation.

»
6 months ago, # |
Rev. 2   Vote: I like it +7 Vote: I do not like it
»
6 months ago, # |
  Vote: I like it 0 Vote: I do not like it

checkout toxic_hack too.

»
6 months ago, # |
  Vote: I like it +16 Vote: I do not like it
»
6 months ago, # |
  Vote: I like it +18 Vote: I do not like it
»
6 months ago, # |
  Vote: I like it -10 Vote: I do not like it
»
6 months ago, # |
  Vote: I like it -18 Vote: I do not like it

Man, they don't use macros because they use snippets and autocomplete.

Do you think they type every single character in those implementations during contest? Of course not!

»
6 months ago, # |
  Vote: I like it +27 Vote: I do not like it

scott_wu has good code

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

    I learned a lot from pajenegod myself

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

      Oh, nice. Btw congrats for your best performance in Google Kickstart.(Rank 26)

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

Also, icecuber(best competitive coder from Norway and kickstart round 1B 2nd rank holder) writes one of the cleanest codes