另类思路
###*### blackCount = 3 = 4 - 1 starCount = 1 = 1 * 2 - 1
##***## blackCount = 2 = 4 - 2 starCount = 3 = 2 * 2 - 1
#*****# blackCount = 1 = 4 - 3 starCount = 5 = 3 * 2 - 1
******* blackCount = 0 = 4 - 4 starCount = 7 = 4 * 2 - 1
如上图,为了直观,使用#代表空格。