输入输出重定向(提交时候注意注释掉重定向语句)

freopen("./in.txt","r",stdin); //输入重定向,输入数据将从in.txt文件中读取 
freopen("./out.txt","w",stdout); //输出重定向,输出数据将保存在out.txt文件中