Skip to main content

Timeline for Two Makes All The Difference - Cops

Current License: CC BY-SA 3.0

17 events
when toggle format what by license comment
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Aug 12, 2015 at 6:36 history edited isaacg CC BY-SA 3.0
added 64 characters in body
Aug 12, 2015 at 2:49 comment added isaacg Cracked. That was a fun one!
Aug 11, 2015 at 20:56 comment added Blue No, it doesn't break it by making the change you made. By changing (or adding/removing) 2 chars in that version, you can still get the same output
Aug 11, 2015 at 19:42 comment added Alex Van Liew The octal numbers are clever, though.
Aug 11, 2015 at 19:42 comment added Alex Van Liew @muddyfish: xrange returns a generator, so multiplying it by a number won't work in py2.7. However, you can achieve the same result with one more character: print (sum(xrange(054321))*9876*87654)/01234 (note the moved paren). It also computes almost instantly on a weak machine I was testing on, whereas prior it threw MemoryError. You don't have to change it by any means (and for all we know it breaks the changed version) but if it still works fine it would help a bit.
Aug 11, 2015 at 19:36 comment added Blue Changing range to xrange breaks it on my computer - py2.7. (Thats the original, i didnt test it with the changed). It might not for py3 but i cant tell if the changed stuff will be the same in py3 because i dont have it
Aug 11, 2015 at 18:13 comment added Fatalize IMO this answer seems kind of not interesting if this relies only on changing the numbers involved (we don't know if this is the case), because in that case you can probably do shorter and the only way it will ever get cracked is just by brute force, not cleverness.
Aug 11, 2015 at 16:53 comment added Alex Van Liew Oh man, I didn't notice that you could change, add, or remove two characters. I was working on this but ugh, I don't want to play with numbers like that.
Aug 11, 2015 at 16:49 comment added Alex Van Liew Oh, I didn't notice shortest uncracked. Sure.
Aug 11, 2015 at 16:46 comment added Sp3000 @AlexVanLiew But the scoring is code-golf in a sense, shortest uncracked. Having said that though, there's an unnecessary space and pair of parens... or are they necessary? ;)
Aug 11, 2015 at 16:43 comment added Alex Van Liew Since this isn't code golf, you could reduce the memory load by using xrange instead of range and I believe itertools has a generator-builder that repeats a sequence x number of times.
Aug 11, 2015 at 11:50 comment added Sp3000 No, it's all good. My computer's just a bit low of memory and I wasn't sure how much it used.
Aug 11, 2015 at 11:49 comment added Blue Sorry, yes it is python 2, the most memory it uses on my computer is 1.61GB, is that really too much?
Aug 11, 2015 at 11:27 comment added Sp3000 I've edited your post to reflect that this is a Python 2-specific submission, due to the missing parentheses for print and the multiplication of range by an integer. However, I seem to be getting MemoryErrors from the large list...
Aug 11, 2015 at 11:24 history edited Sp3000 CC BY-SA 3.0
added 2 characters in body
Aug 11, 2015 at 11:07 history answered Blue CC BY-SA 3.0