edit solve for condition max >= 1

update 2013-03-28