new

不要把多个快读作为参数直接传到函数里,因为逗号是返回最后一个,所以到函数里三个参数就反了

如,不能写

int solve(int a,int b){
      return a - b;
}
int main(){
      int ans = solve(read(), read()); // !!!
      printf("%d
", ans);
      return 0;
}

用快读,最好应该

int solve(int a,int b){
      return a - b;
}
int main(){
      int x = read(), y = read();
      int ans = solve(x,y); // ...
      printf("%d
", ans);
      return 0;
}
原文地址:https://www.cnblogs.com/Lour688/p/13973339.html