freopen("median.in","r",stdin); freopen("median.out","w",stdout); ios::sync_with_stdio(false);
rt,ios应该在fre前面还是后面啊大佬们