45
\$\begingroup\$

This is the companion thread to the main Unscramble the Source Code challenge. If you think you have managed to unscramble one of the cop answers, you should post your solution as the answer to this thread.

As a reminder, you have one attempt at cracking each submission. Your cracking attempt will be an unscrambled version of the source code. If your guess matches the description (same characters, output, and of course language), and you are the first correct guess, then you win a point. It is important to note that your program does not have to exactly match the original, simply use the same characters and have the same functionality. This means there could be more than one correct answer.

The robber with the most points (successful cracks) wins.

Leaderboard

Too many solves

20 solves

15 solves

10 solves

7 solves

5 solves

4 solves

3 solves

2 solves

1 solve

\$\endgroup\$
6
  • 1
    \$\begingroup\$ Perl 5, size 27, by Morot - print'pin'=~tr(a-za)(za-z)r \$\endgroup\$ Commented Nov 6, 2014 at 14:34
  • \$\begingroup\$ @WumpusQ.Wumbley We've all been there... ;) \$\endgroup\$ Commented Nov 6, 2014 at 14:35
  • 3
    \$\begingroup\$ I refuse to waste my time attempting to appease it. \$\endgroup\$ Commented Nov 6, 2014 at 14:35
  • \$\begingroup\$ Given the two question bodies, it appears that the scrambled/unscrambled answers are reversed \$\endgroup\$ Commented Nov 6, 2014 at 23:31
  • \$\begingroup\$ Ruby, 23 by MegaTom = p %++.methods[80][1..-1] \$\endgroup\$ Commented Nov 11, 2014 at 22:31

183 Answers 183

1
3 4 5 6
7
0
\$\begingroup\$

Python 2, Oliver

r =int= 2**2**2*2**2**2*2**2**2**2*2**2*2**2*2**2*2**2*2**2*2 print 16777216, 

Demo on ideone

There is nothing tricky here. All the numbers are there, only need some rearrangement to comply with the syntax.

You can pipe the output to xxd to see that it has a trailing new line:

$ python -c 'r =int= 2**2**2*2**2**2*2**2**2**2*2**2*2**2*2**2*2**2*2**2*2;print 16777216,' | xxd 0000000: 3136 3737 3732 3136 0a 16777216. 
\$\endgroup\$
6
  • \$\begingroup\$ Thats wrong, the output had a trailing newline \$\endgroup\$ Commented Jan 12, 2015 at 4:21
  • \$\begingroup\$ The output was 16777216\n with the \n being a line break. \$\endgroup\$ Commented Jan 15, 2015 at 5:33
  • \$\begingroup\$ When you do print 'abc', the comma makes it not have a line break. \$\endgroup\$ Commented Jan 15, 2015 at 5:34
  • \$\begingroup\$ @Oliver: I always find a new line at the end. It will add space if you have another print statement, but I only have a single print statement here. I have also tested with executing the code from a file with the same result. \$\endgroup\$ Commented Jan 15, 2015 at 5:54
  • \$\begingroup\$ No. Take a look at this picture. oliverni.com/Screenshot%20(4).png \$\endgroup\$ Commented Jan 17, 2015 at 2:52
0
\$\begingroup\$

Python 2, Oliver

rt =in= 2**2**2*2**2**2*2**2**2**2*2**2*2**2*2**2*2**2*2**2*2, print 16777216 

All actual credit to n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳ with this solution. I just stole it and corrected it.

\$\endgroup\$
0
\$\begingroup\$

Python, 124, Larry Bagel

for i in dict(a=1):print(i) """ "aintAA rtcdinstl()aprpp ll a.aub________.:npt prnonti:________.ssssinsbuitic.nipront.aif""" 

Try it online!

\$\endgroup\$
1
3 4 5 6
7

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.