codeblock

2016年3月30日 星期三

Python Challenge level 12

http://www.pythonchallenge.com/pc/return/evil.html (login:huge/file)

- I downloaded evil1.jpg and checked this picture over and over again, but I still don't know how to deal with the EVIL here.
- After searching for some tips on Google, there is a person said, "The picture is evil1.jpg, so not surprisingly there will be evil2.jpg." Well, for me, at least, it has little sense.

- evil2.jpg told us we should look for evil2.gfx, and evil3.jpg said no more pictures. Let's deal with evil2.gfx.
- Another tip is the poker cards is divided into 5 sets in evil1.jpg, so we should do the same thing to evil2.gfx.

f = open("evil2.gfx", "rb")
b = f.read()
f.close()
divided_b = [[], [], [], [], []]
n = 0
for i in range(len(b)):
 divided_b[n].append(b[i])
 n = 0 if n==4 else n+1

for i in range(5):
 f = open(str(i)+".jpg", "wb")
 f.write("".join(divided_b[i]))
 f.close()
- The result shows 5 pictures:






- The answer is: disproportionality

沒有留言:

張貼留言