示例#1
0
 def part2(filename: str) -> int:
     """ Given a filename, solve 2015 day 12 part 2 """
     data = first_line(filename)
     data = json.loads(data)
     return total_nums_no_red(data)
示例#2
0
 def part2(filename: str) -> str:
     """ Given a filename, solve 2015 day 11 part 2 """
     password = first_line(filename)
     return next_pw(next_pw(password))
示例#3
0
 def part2(filename: str) -> int:
     """ Given a filename, solve 2015 day 20 part 2 """
     target = int(first_line(filename))
     return part2(target)
示例#4
0
 def part2(filename: str) -> int:
     """ Given a filename, solve 2015 day 21 part 2 """
     directions = first_line(filename)
     return count_visited(directions, 2)
示例#5
0
文件: day04.py 项目: besarism/aoc
 def part2(filename: str) -> int:
     """ Given a filename, solve 2015 day 04 part 2 """
     key = first_line(filename)
     return first_password(key, 6)