神奇读入挂_

记得加头文件#include

    const int BufferSize=100*1000;
char buffer[BufferSize],*head,*tail;
bool not_EOF=true;
inline char Getchar(){
if(not_EOF and head==tail){
int len=fread(buffer,1,BufferSize,stdin);
not_EOF=len!=0;
head=buffer,tail=head+len;
}
return not_EOF?*head++:-1;
}
inline int rd(){
int x=0,s=1;
char c=Getchar();
for(;!isdigit(c) and not_EOF;c=Getchar()) if(c=='-') s=-1;
for(; isdigit(c) and not_EOF;c=Getchar()) x=(x<<1)+(x<<3)+(c^48);
return s*x;
}
inline void scan(char *str){
char c=Getchar();
for(; isspace(c) and not_EOF;c=Getchar());
for(;!isspace(c) and not_EOF;c=Getchar()) *(str++)=c;
*str=0;
}

最新文章

  1. [原创开源项目]EPUBBuilder一款在线的epub电子书编辑工具
  2. lua 类支持属性不能被修改
  3. Office 365 - SharePoint 2013 Online 中创建母版页
  4. 【POJ 3041】Asteroids (最小点覆盖)
  5. VB中的属性、方法和事件概念解析
  6. 【POJ】2954 Triangle(pick定理)
  7. Show Users Assigned to a Specific Role
  8. 1050 数的计数 c语言实现
  9. ajax withCredentials在firefox下问题的解释
  10. redis+PHP实现的一个优先级去重队列
  11. C# TypeConverter 数据转换
  12. 自己改写了一个图片局部放大的jquery插件页面里面的html代码少了,同一个页面可以调用多个
  13. Linux MySQL5.5源码安装
  14. 从壹开始前后端分离【 .NET Core2.0 +Vue2.0 】框架之十二 || 三种跨域方式比较,DTOs(数据传输对象)初探
  15. Python+Tkinter 实现计算器功能
  16. MySQL使用select查询时,在查询结果中增加一个字段并指定固定值
  17. 01:golang开发环境
  18. 使用MyBatis Generator 1.3.7自动生成代码
  19. 解决SecureCRT超时自动断开的问题
  20. 【Java并发编程】之十六:深入Java内存模型——happen-before规则及其对DCL的分析(含代码)

热门文章

  1. TRUNCATE TABLE 与 DELETE (转)
  2. C# 控制台语音计算器
  3. WCF中的异步实现
  4. LN : leetcode 646 Maximum Length of Pair Chain
  5. Hibernate的入门使用
  6. C#通过post发送接收数据流
  7. CAD交互绘制多段线(com接口)
  8. vue脚手架引入swiper
  9. 离线缓存 application cache
  10. 修改python注册表