save problem and partial solution