前言
以前做的题
题解
这题不难,理清逻辑就好,
空想想了半天,不如动笔在纸上写写。
简单简单,就是理清逻辑费时间,下次要加快思考速度了。
n = (0, 1, 3, 4, 5, 6, 7, 9)
v = ('i', 'e', 'n', 'd', 'a', 'g', 's', 'r')
flag = ""
def dd(i):
global flag
if i not in n:
print("over")
return 0
else:
print(i, end=" ")
flag += v[n.index(i)]
return dd(7*(i+1) % 11)
dd(0)
print(flag)
t = [0x0000000F, 0x0000001F, 0x00000004, 0x00000009, 0x0000001C, 0x00000012, 0x00000042, 0x00000009, 0x0000000C, 0x00000044, 0x0000000D, 0x00000007, 0x00000009, 0x00000006, 0x0000002D, 0x00000037,
0x00000059, 0x0000001E, 0x00000000, 0x00000059, 0x0000000F, 0x00000008, 0x0000001C, 0x00000023, 0x00000036, 0x00000007, 0x00000055, 0x00000002, 0x0000000C, 0x00000008, 0x00000041, 0x0000000A, 0x00000014]
for i in range(0, 33):
print(chr(t[i] ^ ord(flag[i % 8])), end='')