快速输入 本文最后更新于 2020年4月7日 下午 123456789inline int read(){ int x=0,f=1; char ch=getchar(); while (ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();} while (ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();} return x*f; } 这个快速输入只适合int类型,另外如果参加比赛,最好不要用cin,cout,速度较慢用scanf,printf更好 算法 快速输入 https://www.xinhecuican.tech/post/54778.html 作者 John Doe 发布于 2020年1月11日 许可协议 memset 上一篇 qsort 下一篇 Please enable JavaScript to view the comments