I dare you to…

Trololo-9 Challenge

Hey Guys, here is a fun challenge.

Write a program that outputs the first 9 lines of the trololo song (Get the lyrics here). The goal is to make the program shorter than the actual text (i.e. less than 470 bytes). So grab a cup of coffee and have fun with this little challenge 🙂

Rules:

  1. You may only use the standard library of your programming language
  2. No external programs are allowed (i.e. dont pipe your program into another program)
  3. Reading files other than your program is not allowed



Hall of Fame

  1. Uffe Thorsen – 128 bytes – python:link
  2. Felix Palludan Hargreaves & Uffe Thorsen* – 142 bytes – python:link
  3. Thies Pierdola – 147 bytes – python:link
  4. Thies Pierdola – 179 bytes – python:link
  5. Thor Bendix – 242 bytes – python:link
  6. Thies Pierdola – 279 bytes – shell-script:link
  7. Jonas Nyrup – 361 bytes – shell-script:link
  8. Rune Larsen – 371 bytes – shell-script:link
  9. Søren Haagerup – 379 bytes – php:link
  10. Felix Palludan Hargreaves – 419 bytes – scala:link

* No-comprehension edition

Best so far:

print reduce(lambda x,(k,v):x.replace(k,v),zip(‘UL8917243650GXTZQ’,[‘AhhhhhXXX4′,’OhohohGo! OhX y4′,’ah11′,’, nun-ah1′,’-nah’,’nah 2-2, ‘,’nuh’,’3, ya ya y3, y3, ya yah.’,’Zh’,’Ye-ye-5 5 5, oh hohoho’,’ye-ye-yeh’,’ZZZ’,’ooo’,’ ya’,’a-d’,’aaa’,’\n’]),s)

Shortest 99 Bottles of Beer program


99bob

Write the shortest possible program that prints the lyrics to 99 bottles of beer.

If you managed to forget the lyrics, please go here.
Or in cleartext

Rules:

  1. You may only use the standard library of your programming language
  2. No external programs are allowed (i.e. dont pipe your program into another program)
  3. Reading files other than your program is not allowed

Hall of Fame

example

Leave a Reply

Your email address will not be published. Required fields are marked *