When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

tanmay2625's blog

By tanmay2625, history, 4 years ago, In English

Dear Codeforces Community,

Many times, we find it difficult to implement solutions to some problems (generally higher than our own rating), even after reading editorials. There are some implementation details that are not clear. At such times, it is useful to add some contestants as friends who write clean and readable codes. Also, their codes help us to get the idea of solutions (just after the contest) even before editorials are published.

Here are some contestants (in no particular order) that I know who write very neat, clean and readable codes and have helped me a lot so far through their codes :

Name such contestants that you know in the comments section for the benefit of everyone!

Happy coding!

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

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

Major missing : icecuber antontrygubO_o 300iq

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

My favorites kocko, Java, beethoven97, mohmahkho, emthrm and Petr

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

    Thanks! Didn't know that somebody reads my solutions and finds them actually good. :)

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

    thanks for your mention

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Petr is recently using C++ and he writes neat and detailed code.

»
4 years ago, # |
  Vote: I like it +17 Vote: I do not like it

I think this, this, this or this can get you a lot of information!

»
4 years ago, # |
  Vote: I like it -20 Vote: I do not like it

No mention of tourist?

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

    Stating the obvious is boring.

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

    Sorry but i don't find his code neat. The code might be the most optimised and everything but when it comes to neatness, na. Most people don't like such indentations and coding styles, especially from India.

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

    2 Spaces throws me away. idk why, I find code with tab = 2 spaces very hard to read lol.

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

Too many blogs on this topic as T1mofey778 has stated, stop spamming old shits please.

»
4 years ago, # |
  Vote: I like it -34 Vote: I do not like it

My favourite: Not-Afraid.

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

    He is not asking favourite... please Re-read the question

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

    Why the F* people are downvoting me? If i can't i express my views then why this blog was written?

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

rajat1603 he too writes elegant code

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

Read jiangly's codes, for div2 contests, most of the time his codes are better implemented and readable than editorial solutions (Just my opinion tho)

I have learned a lot from his submissions!

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

VladProg also writes very neat and clear codes especially for graph problems

»
4 years ago, # |
  Vote: I like it +15 Vote: I do not like it

Baraa_Armoush write neet and understandable code

»
4 years ago, # |
  Vote: I like it +21 Vote: I do not like it

Codes of vitux are most readable for me

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

    arthurg's code is the most garbage. Whenever I go take out the trash, I make sure to also run rm -rf codeforce_problems to take out the garbage code.

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

i think the best contestant who writes its code very clean very smart and very very short codes for very tough problems is this guy https://codeforces.com/profile/KMAASZRAA and the reason of his clean codes is the time he spent to thinking the exact implementation for a problem and his clean codes helps him to implement the very hard problems in very short time

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

_overrated_ has a very neat codestyle

»
4 years ago, # |
  Vote: I like it +23 Vote: I do not like it

talant has a very neat codestyle

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

harshit15 writes too elegant solutions.I have learnt a lot from his submissions

»
4 years ago, # |
  Vote: I like it +42 Vote: I do not like it

One suggestion to all from my side : Avoid checking Radewoosh code. It will save your time though!

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

    Well, I’m using my native language mixed with English, sorry for that.

»
4 years ago, # |
  Vote: I like it +39 Vote: I do not like it

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

Using the opportunity: does anybody here understand NEAT algorithm, has implemented it and can answer me a few questions about speciation?

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

    Since nobody has responded, I take up the opportunity to introduce you to someone who can really help.

    I would suggest Ashishgup writes the best code in terms of neatness and declaring variable names that are quite intuitive. In short his codes are pretty much self explanatory.

    Many coders here in India I guess learn from his submissions.

    Also he has a very high submission count. This helps in a way that which ever problem I choose its most likely that he has a submission.

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

      Huh? NEAT stands for “NeuroEvolution of Augmenting Topologies”, it’s a machine learning algorithm...

      During the contest my code should be as comfortable as possible for me and only for me, and it is, so I don’t need such help xd

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

        Lol i am so stupid.

        But great to have a comment from you.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

hohl writes very neat code. His most submissions are really awesome.

»
4 years ago, # |
  Vote: I like it +15 Vote: I do not like it

I always check jqdai0815's submissions. He could do 30 lines of my code in 3 line codes.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

It would be a help if someone suggests me some way I can improve the readability of my code. TIA

»
4 years ago, # |
  Vote: I like it -9 Vote: I do not like it

hitman623 see his code

»
4 years ago, # |
  Vote: I like it +5 Vote: I do not like it
»
4 years ago, # |
  Vote: I like it +11 Vote: I do not like it
»
4 years ago, # |
Rev. 2   Vote: I like it +18 Vote: I do not like it

Are you kidding , put mango_lassi at the top of the list.No one compares to him in clean and readable code.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Once I read someone's code while going through the solutions and I found it really beauTiFul. I guess that's been my motivation for writing a cleaner code and I hope I'm doing well as abeginer.

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

uwi. one of the best Java coder. His coding style and prepared libraries are so elegant.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

My ICPC teammate abhi2402 always writes neat codes. I learn a lot from his codes while upsolving!

»
4 years ago, # |
  Vote: I like it -8 Vote: I do not like it
»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it
»
4 years ago, # |
  Vote: I like it +10 Vote: I do not like it

Kuroni writes really neat code! I learned a lot from his solutions and implementations.

»
4 years ago, # |
  Vote: I like it +9 Vote: I do not like it

I too write neat and readable code but I can't solve more than C/D and C/D are solved by tons of contestants! :'(

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

pllk for sure

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

ILoveBitches writes elegant Java code. Have a look at his submissions :)

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

I really like ecnerwala's code especially for div 2 problems

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

I've seen solutions from all these users. But I think they don't even come close to ecnerwala's. His code is not only clean and understandable, he also has very clear ideas about his conceptual solutions, which makes him write much fewer lines than the average. This distinguishes him from other top contestants, who sometimes write spaghetti code due to time pressure. Additionally, he often adds assertions, which I find useful to know what assumptions are made in each part of the code. When I don't understand a problem, the very first thing I do is check if he has solved it.

»
4 years ago, # |
  Vote: I like it +8 Vote: I do not like it
»
4 years ago, # |
  Vote: I like it +28 Vote: I do not like it

How did you forget tourist? I always read his code and understand the idea easily. Am I the only one?

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

Just wanted to update the list for users who haven't been mentioned:

I learned a lot from their submissions :D

Long live neat and readable codes!

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

I refer to the Python codes of these folks quite often :)

soham_mittal chinerist rahulguptanitro pajenegod conqueror_of_tourist

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

codes by jiangly I think are the most easy to read even for beginners.

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

I think tourist too.

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

I love to see code of Farhod , peti1234 , QAQAutoMaton, Petr & Um_nik as they write very neat and understandable solution. I'm trying to learn as much as I can from their code( for me it's may be A, B or C).

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

-is-this-fft is my favorite lol. Really love his functional style, it makes the code easy to debug and easy on the eyes

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

dendi239 and his debug macros

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

I found The_Alchemist Ashishgup solutions very neat and readable.

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

Following are the best for me:
- ksun48 - Ashishgup - jiangly - InfiniteChallenge - Savior-of-Cross - epsilon_573

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

    Delighted my code could help you. Sadly I am busy with my intern right now and taking a break from CP.

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

i like too the contestants u listed

im gonna add BakryTripleM5daBucketPotato