First of all, the phenomenon you mentioned is quite common in university dormitories. Boys' dormitories are more common in girls' dormitories. Because boys will prefer physical exercise, sweat more, and their feet will sweat, but the sports shoes and rubber shoes they wear don't deodorize very much, so their feet will smell.
For smelly feet, the best way is to change shoes and socks frequently and insist on washing feet before going to bed every night. Pay attention to the good air circulation in the dormitory. This can curb the foot odor in the dormitory to a certain extent.
The above is personal experience. I hope my answer can help you and make you satisfied.
Finally, I wish you progress in your studies and a happy New Year.