• 头文件板子


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

    #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;
    
  • 相关阅读:
    性能测试策略和关注指标
    ES7.17.1安装
    java 复制对象
    Java 实现树结构计算各个节点数的和
    自定义初始化ES实体类
    .net core datatable 导出 pdf 支持中文
    VSCode 快捷键(整理)
    国标平台LiveGBS GB28181接入录像机NVR、摄像头时没有通道 通道数位0的检查办法
    基于docker搭建Android cordova开发环境
    SpringBoot整合邮箱发送邮件
  • 原文地址:https://www.cnblogs.com/llke/p/10785852.html
Copyright © 2020-2023  润新知