solve a bug in template(WTF!)
ac bzoj_3504(cqoi2014 bridge)