RosettaCodeData/Task/A+B/Relation/a+b.relation
2023-07-01 13:44:08 -04:00

4 lines
141 B
Text

set input = "2 2"
set a = regexreplace(input,"^(-?\d+)\s+(-?\d+)+$","$1")
set b = regexreplace(input,"^(-?\d+)\s+(-?\d+)+$","$2")
echo a + b