field turn: int field his_hist: int [] field my_hist: int [] field defect: int field he_is_not_defect: int field he_is_not_rotation: int field he_is_not_revenge: int def start() -> void : if turn == 0: defect = 1 he_is_not_defect = 0 he_is_not_rotation = 0 he_is_not_revenge = 0 elseif turn == 1: he_is_not_defect = he_is_not_defect + (his_hist[turn - 1] == 0) defect = his_hist[0] else: he_is_not_defect = he_is_not_defect + (his_hist[turn - 1] == 0) he_is_not_rotation = he_is_not_rotation + (his_hist[turn - 1] == his_hist[turn - 2]) he_is_not_revenge = he_is_not_revenge + (his_hist[turn - 1] != my_hist[turn - 2]) if turn == 2 && he_is_not_defect == 0: defect = 0 elseif he_is_not_rotation == 0: defect = 1 elseif he_is_not_defect == 0: defect = 1 elseif he_is_not_revenge == 0: defect = turn == 19 elseif turn > 5 && my_hist[turn - 1] != my_hist[turn - 2] && my_hist[turn - 1] == my_hist[turn - 3]: defect = my_hist[turn - 1] elseif his_hist[turn - 2] == 0 && my_hist[turn - 1] < his_hist[turn - 1]: defect = turn / 2 * 2 != turn elseif my_hist[turn - 1] < his_hist[turn - 1]: defect = 1 elseif his_hist[turn - 2] == 0 && his_hist[turn - 1] == 0: defect = 1 else: defect = 0