[yanan] add roomId and chapterId
[yanan] fix algorithm of calculate problem situation