• + 0 comments

    In R could be:

    stdin <- file('stdin')
    open(stdin)
    
    line <- as.numeric(strsplit(trimws(readLines(stdin, n = 1, warn = FALSE), which = "right"), " ")[[1]])
    cat(format(round(160 + 40*(line[1]+line[1]^2),3), nsmall=3), fill=TRUE)
    cat(format(round(128 + 40*(line[2]+line[2]^2),3), nsmall=3), fill=TRUE)