zoukankan      html  css  js  c++  java
  • 头文件板子

    包含各种输入输出的缩写,适合偷懒型选手使用
    就是会把代码弄的很长,看起来极丑

    #include<bits/stdc++.h>
    using namespace std;
    #define fin freopen("in.txt", "r", stdin)
    #define fout freopen("out.txt", "w", stdout)
    #define rep(i,a,n) for(int i=a;i<n;i++)
    #define dow(i,a,n) for(int i=n;i>=a;i--)
    #define sca(x) scanf("%d",&x)
    #define sca2(x,y) scanf("%d%d",&x,&y)
    #define sca3(x,y,z) scanf("%d%d%d",&x,&y,&z)
    #define scl(x) scanf("%lld",&x)
    #define scl2(x,y) scanf("%lld%lld",&x,&y)
    #define scl3(x,y,z) scanf("%lld%lld%lld",&x,&y,&z)
    #define scd(x) scanf("%lf",&x)
    #define scd2(x,y) scanf("%lf%lf",&x,&y)
    #define scd3(x,y,z) scanf("%lf%lf%lf",&x,&y,&z)
    #define scc(x) scanf("%c",&x)
    #define scs(x) scanf("%s",x)
    #define pri(x) printf("%d
    ",x)
    #define pri2(x,y) printf("%d %d
    ",x,y)
    #define pri3(x,y,z) printf("%d %d %d
    ",x,y,z)
    #define prl(x) printf("%lld
    ",x)
    #define prl2(x,y) printf("%lld %lld
    ",x,y)
    #define prl3(x,y,z) printf("%lld %lld %lld
    ",x,y,z)
    #define prc(x) printf("%c",x)
    #define prd(x) printf("%lf
    ",x)
    #define prt(x) printf("%s",(x))
    #define prs(x) printf("%s
    ",(x))
    #define ll long long
    #define LL long long
    #define ULL unsigned long long
    #define pb push_back
    #define mp make_pair
    #define PII pair<int,int>
    #define PLL pair<ll,ll>
    #define PDD pair<double,double>
    inline ll read(){ll 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;}
    #define read read()
    template<class T> inline T gcd(T x,T y) {return y?gcd(y,x%y):x;}
    template<class T> inline T lcm(T x,T y) {return x/gcd(x,y)*y;}
    #define pi acos(1.0)
    #define eps 1e-6
    #define inf 1e17
    #define INF 0x3f3f3f3f
    #define N 205
    const int maxn = 1e5+10;
    
  • 相关阅读:
    P3916 图的遍历 题解
    NBL小可爱纪念赛「 第一弹 」 游记(部分题解)
    P4147 玉蟾宫 题解
    十、一些小例子
    九、基础正则表达式BRE
    八.linux系统文件属性知识
    七、linux目录结构知识---实战
    六、linux目录结构知识
    3.20-30岁形成好的习惯
    五、Centos linux系统优化-实战
  • 原文地址:https://www.cnblogs.com/llke/p/10785852.html
Copyright © 2011-2022 走看看