真是晦气, 代码中存在ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); 就会影响while(c=getchar() != EOF) 的撤回输出,浪费自己半天时间,真是晦气!