Cheating in python

Add a reply

Posted by knute 881 days ago:
I just found out that it is possible to "cheat" in this challenge by using built-in string functionality in python (decode() + some black magic), except that this is not really against the rules, is it? But it takes the fun out of the challenge, so I didn't submit a cheating solution... yet.

The "black magic" part involves knowing a checksum of the uncompressed data, so I don't think it would be possible to cheat in this way if the challenge included some randomly generated text, for instance.
Posted by Mark Byers 880 days ago:
Probably it won't work. Many of the codecs have been removed because some people regarded it as cheating to use them. You can try it though to see what happens if you like.
Posted by knute 880 days ago:
You're right, I tried to submit it now and it didn't pass.
Posted by hallvabo 871 days ago:

import gzip,sys
print gzip.GzipFile('r',fileobj=sys.stdin).read()


65 bytes, but importing gzip is disallowed by codegolf.com.

Add a reply