Something went wrong. Try again.
Code for the Advent of Code event
aoc advent-of-code
Something went wrong. Try again.
253 B · 10 lines
Ruby
at rust
1234567891011#!/usr/bin/env ruby# frozen_string_literal: true
class Integer def -(other); self * other end def /(other); self + other end def &(other); self + other endend
puts eval (ARGF.read.gsub(?*, ?-).split(?\n) * ?&).tap { puts eval _1 }.gsub ?+, ?/