detamos's blog

By detamos, 7 years ago, In English

CodeGolf

Hi everyone,

I would like to invite everyone to participate in CodeGolf at HackeEarth. The contest will start on July 28,2017 at 9:00 pm IST.

CodeGolf is a competitive coding challenge for all the geeks out there, but what makes it different is, you have to code short to fetch more marks. Though what's priceless is solving interesting problems and the thrill of competition. To deal with it, you require a level patience and skill that escapes ordinary programmers.

We invite you to take up this opportunity to bring out the programmer in you. The right code with minimum characters is all thats required to win.Are you ready? :)

Rules

Problems and Duration
  1. There will be 5 algorithmic problems.
  2. Contest will be for 3 hours.
Scoring
  1. Though you have to pass all the test cases, you will be scored on the basis of the length of your source code. (Thats the twist)
  2. Lesser the number of characters used, higher will be your rank on the leaderboard :D
  3. Maximum Scoring : 50 — 100 — 150 — 200 — 250

Problems setting and testing is done by sahilarora.535, Abhishek Sharma, Abhishek Pal, enitihas, Aksh Gautam.

Prize : HackerEarth Goodies
Organised by : Programming Club, IIT Mandi
Link : CodeGolf
UPDATE : The third question had some bugs in input. The ps auxh command input was unfiltered, hence C++ users were getting a WA. It had been removed in the contest. Apologies.

Editorials for 2 problems have been posted, for the other problems, they will be up soon.

It would be great if someone could share their experience of the contest, the problems, expectations, etc. so we can improve in the future. Thanks! :)

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

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

Guys I don't know why people down voted it. IIT Mandi is organizing this contest, it would be fun. I guess people down voted it because problem setters are not red or yellow. It doesn't matter. I am very excited to take part.

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

    Thanks man! :)

    You will enjoy the contest for sure.

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

      I liked your poster though, I movies programmers are shown to be fast typers. But in real life we spent much time thinking, not typing.

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

As a community we should support people to take up programming , set questions , compete and organize contests. I feel down voting an invitation to contest just because the problem setters are not high rated coders, goes against the spirit of programming.

Kudos to the efforts of the organizers. Have a great contest :)

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

Hey ! what about different programming languages? like in python, the code will be shorter than in java or c++? so how u guys will evaluate that??

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

    Hey, the languages allowed will be:

    1. C
    2. C++
    3. C++14
    4. Haskell
    5. Java
    6. Java 8
    7. JavaScript(Rhino)
    8. JavaScript(Node.js)
    9. Objective-C
    10. PHP
    11. Python
    12. Python 3
    13. Ruby
    14. Swift
    15. Kotlin

    The scoring will be based on the number of characters in code including whitespace characters. It is indeed that some languages have an upper hand over the others for golfing, but it is not guaranteed that you will lose if you choose a language like C. For instance, a "Hello, World" can be written in approxiamate 100 characters if you write loosely, and 30 characters if you are a good optimizer, close to a python counterpart.

    main(){puts("Hello, World!");}

    Now if you include all the whitespaces and indentation in python, you may be better off in a C code :)

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

      I don't approve point 2 of scoring. It should not matter if a person's code is more lengthy. Instead clean codes tend to be a little lengthier. Instead less execution time should have been given priority.

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

        @Siriuslight actually Codegolf is a different paradigm of programming competition in itself. The aim is to write an algorithm in minimum characters in code. Indeed you are right that algorithm matters, but codegolf is not coding without algorithms, but coding some algorithm in shortest amount of code. There is an entire stackexchange website dedicated to it: Codegolf

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

What's up with problem 3? It's gone from the problems page.

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

    i think 3rd problem had some problems with the test cases thats why it was removed

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

There are some extra spaces at the end of some lines.

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

Update:

  1. The third question had some bugs in input. The ps auxh command input was unfiltered, hence C++ users were getting a WA. It had been removed in the contest. Apologies.
  2. Editorials for 2 problems have been posted, for the other problems, they will be up soon.

It would be great if someone could share their experience of the contest, the problems, expectations, etc. so we can improve in the future. Thanks! :)