This problem is in Contest(s) below:
Contest 1005:2018同济大学程序设计 新生赛