diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-12-09 20:49:08 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-12-09 20:49:08 +0100 |
commit | 511864e720753f1b7f3156b9ea8abcdb3d2835a1 (patch) | |
tree | 58c5f72aebc2e43591c198848ef9f2c802f4a34e | |
parent | b81cc71523fdfe9065e34e09c24c78fe3fbdce98 (diff) |
-rwxr-xr-x | 09/main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -17,8 +17,10 @@ for line in sys.stdin: derivatives.append(derivative(derivatives[-1])) prediction = 0 + sign = 1 for d in derivatives: - prediction += d[-1] + prediction += d[0] * sign + sign *= -1 output += prediction |