xehoth / xehoth-blog-comment

0 stars 0 forks source link

IO优化模板 | xehoth #203

Open xehoth opened 7 years ago

xehoth commented 7 years ago

https://blog.xehoth.cc/IO-Optimization/

IO优化模板为什么要优化IO?请见上一道题志愿者选拔 被此题卡疯的我,写了一个大量优化的IO模板。 普通IO优化我相信多数同学都是用getchar()+*10,就是下面这个代码: 1234567inline void get(int &x) { static int t; while (!((x = getchar()) >= '0' && x