解题思路:
注意事项:
参考代码:
for i in range(5): suspect = [0 for _ in range(5)] suspect[i], cnt = 1, 0 if suspect[0] == 0 and suspect[4] == 0: cnt += 1 if suspect[2] or suspect[4]: cnt += 1 if suspect[2] or suspect[3]: cnt += 1 if suspect[1] == 0 and suspect[1] == 0: cnt += 1 if suspect[4] == 0: cnt += 1 if cnt == 2: temp = dict(zip([j for j in range(5)], "ABCDE")) print(temp[i], sep=' ')
0.0分
0 人评分