这一关题目在此。
不得不说,这一关也是大水题,明确告诉我们是rotation了,本来就试不了一下就OK了,然后服务器上README中竟然还写It is 'encrypted' using a simple rotation called ROT13。这下就连试都不用了,知道得到答案。
s = 'YRIRY GJB CNFFJBEQ EBGGRA'
ans = ''
for c in s:
if c == ' ':
ans += c
else:
ans += chr((ord(c) - ord('A') + 13) % 26 + ord('A'))
print ans