Post History
Pyth, 6 bytes +!-Q2s Try it online! I think there might be a way to shave a byte, but I can't find it. s Sum the input + Add -Q2 Remove the twos from the input ! Nega...
Answer
#1: Initial revision
# [Pyth], 6 bytes +!-Q2s [Try it online!][TIO-ltb0ni14] I think there might be a way to shave a byte, but I can't find it. s Sum the input + Add -Q2 Remove the twos from the input ! Negate [Pyth]: https://github.com/isaacg1/pyth [TIO-ltb0ni14]: https://tio.run/##K6gsyfj/X1tRN9Co@P9/Ix0jAA "Pyth – Try It Online"