快读快写模板

· · 个人记录

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<map>
#define int long long
using namespace std;
template<typenema T>
inline void read(T &x)
{
    x=0;
    registar int f=1;
    registar char c=getchar();
    while(c<'0'||c>'9')
    {
        if(c=='-') f=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9')
    {
        x=(x<<3)+(x<<1)+(c^48);
        c=getchar();
    }
    x*=f;
}
template<typenema T>
void write(T x)
{
    if(x<0)
    {
        putcher('-');
        x=~x+1;
    }
    if(x>=10) write(x/10);
    putcher(x%10+'0');
}
signed main()
{

    //主函数程序 


    return 0;
}

//蒟蒻专用