0
\$\begingroup\$

I'm pretty new to code golfing, but I recently came across a guy on Kattis that consistently has exactly 5 character Bash solutions for some problems. For example, here is a leaderboard showing his 5 character solution: https://open.kattis.com/problems/summertrip/statistics

Anyone have any idea how he's able to do this? I'm itching to find an answer, any help is greatly appreciated

Wheat Wizard
103k23 gold badges298 silver badges694 bronze badges
asked Sep 4 at 2:17
\$\endgroup\$
10
  • 2
    \$\begingroup\$ I think this might be borderline off topic. My opinion (as an individual) is that this is on topic, since it is asking about how a particular problem could be solved in a certain number of bytes. It does seem that maybe there is some "cheating" involved, but I don't think that makes it off topic. \$\endgroup\$ Commented Sep 4 at 2:27
  • 1
    \$\begingroup\$ This question is similar to: Tips for golfing in Bash. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. \$\endgroup\$ Commented Sep 4 at 2:57
  • 9
    \$\begingroup\$ There are several hundred problems on that site where the shortest solution is 5 bytes. Every one I've looked at has a 5 byte Bash 'solution' by the same user. I don't think I'm going out on a limb by suggesting that this is blatant cheating/exploitation of the controller rather than any exhibition of golfing wizardry. \$\endgroup\$ Commented Sep 4 at 5:45
  • 1
    \$\begingroup\$ @WheatWizard I'd say this'd be on topic (or at least less off topic) for meta, if you'd migrate it. \$\endgroup\$ Commented Sep 4 at 14:44
  • 3
    \$\begingroup\$ I have contact to one of the main devs at Kattis and can point this out to him if you so wish. \$\endgroup\$ Commented Sep 4 at 16:03

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.