跳到正文

个人记录

缺省源

LawrenceSivan约 2 分钟
原文
文章信息与版本

文章信息

发布
2021年4月19日
收录
2025年12月12日
更新
2026年9月29日
篇幅
约 2 分钟

版本

  1. v1当前
C++
//#define LawrenceSivan

#include <bits/stdc++.h>
using namespace std;

using i64=long long;
using u64=unsigned long long;
using d64=long double;

#define INF 0x3f3f3f3f

constexpr int maxn=1e5+5;
constexpr int maxm=1;




namespace IO{
    template<typename T>
    inline void read(T &x){
        x=0;T f=1;char ch=getchar();
        while (!isdigit(ch)) {if(ch=='-')f=-1;ch=getchar();}
        while (isdigit(ch)){x=x*10+(ch^48);ch=getchar();}
        x*=f;
    }

    template <typename T, typename... Args>
    inline void read(T& t, Args&... args) {
        read(t); read(args...);
    }

    template<typename T>
    void write(T x){
        if(x<0)putchar('-'),x=-x;
        if(x>9)write(x/10);
        putchar(x%10+'0');
    }

    template<typename T,typename... Args>
    void write(T t,Args... args){
        write(t);putchar(' ');write(args...);
    }
}

using namespace IO;

signed main() {
#ifdef LawrenceSivan
    freopen("aa.in","r", stdin);
    freopen("aa.out","w", stdout);
#endif





    return 0;
}
原文
存档评论2 条抓取于