From the Advent of Code Mega solutions thread: A ...
# linking-together
c
From the Advent of Code Mega solutions thread: A GPT-3 solution. The prompt was: "Prompt: Write a Python3 program to parse a file that consists of groups of integers. Each group is separated by newlines, and groups are separated by two newlines. Sum up the numbers in each group and find the largest sum. One line. Input file is day1.txt." https://www.reddit.com/r/adventofcode/comments/z9ezjb/comment/iyghuum/?utm_source=share&utm_medium=web2x&context=3 The solution:
Copy code
print(max([sum(list(map(int,line.split()))) for line in open('day1.txt').read().split('\n\n')]))
Maybe the future of code is 'English' 😄