This problem is in Contest(s) below:
Contest 3337:柯灵基础
Contest 3358:(AK张老师)飙升班 进制转换一