(defun combo (size n1 n2 n3) (apply #'+ (list (* 3 size) n1 (mod (- n1 n2) size) (mod (- n3 n2) size)))) (print (combo 5 1 2 3))
Standard input is empty
21
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!