gech_guy's blog

By gech_guy, history, 7 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

| Write comment?
»
7 years ago, # |
  Vote: I like it -17 Vote: I do not like it

My code.

»
7 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.

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

Haha we should write a NN to do this xD

»
7 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!

  • »
    »
    7 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.

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

Benq writes clean code!

  • »
    »
    5 years 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 ;)

»
7 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.

»
7 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.

  • »
    »
    6 years 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"...

»
7 years ago, # |
  Vote: I like it -18 Vote: I do not like it
»
7 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.

  • »
    »
    7 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.

    • »
      »
      »
      7 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.

      • »
        »
        »
        »
        7 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

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

          Dear I_love_Captain_America

          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.

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

    me?? why???

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

      I found out that you write neat and clean code which helps me to understand easily. And this is the only reason I follow you on Codeforces :)

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

        oh really? I'm glad that my codes helped you!!!

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

      unused I'm your fan too

»
7 years ago, # |
  Vote: I like it +20 Vote: I do not like it
  • »
    »
    7 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.

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

adamant, I think

»
6 years 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.

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

summitwei writes the best code I have ever seen :o

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

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

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

ajinkya1p3 submissions looks very neat and easy to understand.

»
5 years 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! :)

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

neal's codes are perfect

»
5 years 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?

»
5 years 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.

»
5 years 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.

»
5 years ago, # |
  Vote: I like it +14 Vote: I do not like it
»
5 years 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.

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

wucstdio He writes most neat codes and without macros.

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
5 years 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?

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    5 years 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 ?

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

      I think it is a kind of habit. They learn like this and they couldn't lose their habit.

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

      Those who do devolopment on C++ generally do this practice. Refer this NEVER USE NAMESPACE STD

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

      :O first time I've seen someone else not using it.

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

I feel tmwilliamlin168 codes damn neat and easy to understand

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

checkout Errichto and Ashishgup

»
5 years 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.

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

checkout toxic_hack too.

»
5 years ago, # |
  Vote: I like it +16 Vote: I do not like it
»
5 years ago, # |
  Vote: I like it +18 Vote: I do not like it
»
5 years ago, # |
  Vote: I like it -10 Vote: I do not like it
»
5 years 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!

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

scott_wu has good code

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

    I learned a lot from pajenegod myself

    • »
      »
      »
      5 years 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)

»
5 years 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