Why a wrong number of 1 is printed?

后端 未结 0 1801
予麋鹿
予麋鹿 2020-12-25 10:39

My function should randomly insert a user-chosen number of 1 into my matrix. The difficulty lies in the fact that if a cell contains a 1 the cells around it must be set to 0

相关标签:
回答
  • 消灭零回复
提交回复
热议问题