版本比较
题解 UVA12666 【疯狂的谜题 Killer Puzzle】
正文
增加 5 行删除 5 行
9 行未改动1011121314151614151617181920192021222324111 行未改动全部展开9 行未改动forall(answer_list): bad = False for testing_question in [1,2,3,4,5,6,7,8,9,10]: for testing_option in ["a","b","c","d","e"]: # 你的答案应该是正确的 if testing_option == answer_list[testing_question] and check(testing_question, testing_option) == False: # 你的答案应该是正确的 if testing_option == answer_list[testing_question] and check(testing_question, testing_option) == False: bad = True # 其他选项都是错误的 if testing_option != answer_list[testing_question] and check(testing_question, testing_option) == True: if testing_option != answer_list[testing_question] and check(testing_question, testing_option) == True: bad = True if not bad: print answer_list```111 行未改动全部展开