[Jagl][1] - 20 bytes ==== Input is in stdin in format `(3 4 5 6)`, output is left on stack: T~dqZ*S1 5r]%{U*}/b+ <s>Waiting for a response from the original poster about the output format. Since input is specified as *"whatever you like"*, I am going to assume that my input can be an array on the top of the stack.</s> Now takes input on stdin. Explanation: T~ Get input from stdin and evaluate dqZ* Duplicate, get minimum, and multiply that by 10 S1 5r] Swap (so array is on top), push range 1-5 exclusive, and rotate %{U*}/ Zip arrays together, and multiply each pair b+P Get the sum of that, add the common minimum, and print [1]:http://github.com/globby/jagl