码迷,mamicode.com
首页 > 其他好文 > 详细

超神输入外挂io

时间:2017-09-11 22:49:47      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:void   read   cst   外挂   oid   输入   ==   div   logs   

这个暂时没有整理好,敬请期待。。。。

-------------------分割线-------------------

 1 #include <cstdio>
 2 using namespace std;
 3 namespace fastIO {
 4     #define BUF_SIZE 100000
 5     //fread -> read
 6     bool IOerror = 0;
 7     inline char nc() {
 8         static char buf[BUF_SIZE], *p1 = buf + BUF_SIZE, *pend = buf + BUF_SIZE;
 9         if(p1 == pend) {
10             p1 = buf;
11             pend = buf + fread(buf, 1, BUF_SIZE, stdin);
12             if(pend == p1) {
13                 IOerror = 1;
14                 return -1;
15             }
16         }
17         return *p1++;
18     }
19     inline bool blank(char ch) {
20         return ch ==   || ch == \n || ch == \r || ch == \t;
21     }
22     inline void read(int &x) {
23         char ch;
24         while(blank(ch = nc()));
25         if(IOerror)
26             return;
27         for(x = ch - 0; (ch = nc()) >= 0 && ch <= 9; x = x * 10 + ch - 0);
28     }
29     #undef BUF_SIZE
30 };
31 using namespace fastIO;
32 int a,b;
33 int main()
34 {
35     read(a);
36     read(b);
37     printf("%d\n",a+b);
38     return 0;
39 }

 

超神输入外挂io

标签:void   read   cst   外挂   oid   输入   ==   div   logs   

原文地址:http://www.cnblogs.com/lalalatianlalu/p/7507128.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!