Article 25, Paragraph 1 of the Criminal Law of the PRC stipulates: Joint crime refers to two or more persons committing a joint intentional crime.
According to the above definition, A and B conspiring to teach C a lesson and then A going into the room to beat C is a joint crime.