2010-11-11, 05:11 PM
Oh, realized spaces, tabs and newlines doesn't count. Then we have
Normal - 125:
Extra - 165:
Again, without string-functions.
Normal - 125:
Code:
(do*((a'(1)(nconc a`(,c,v)))(c 0 0)(v 1(car a)))(())(format t"~{~A~}
"a)(setf b a a())(dolist(d b)(if(= d v)(incf c)(setq a(nconc a`(,c,v))c 1 v d))))Extra - 165:
Code:
(do*((a(mapcar #'char-digit(coerce(read-line)'list))(nconc a`(,c,v)))(c 0 0)(v 1(car a)))(())(format t"~{~A~}
"a)(setf b a a())(dolist(d b)(if(= d v)(incf c)(setq a(nconc a`(,c,v))c 1 v d))))Again, without string-functions.

