This problem is in Contest(s) below:
Contest 1000:資料結構正課作業