This problem is in Contest(s) below:
Contest 1088:武进区第4届程序设计比赛(小学)
Contest 1629:WJOI2011