bro的满级缺省源

· · 个人记录

2025.10.21 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
using namespace std;
const int N=100010;
inline int read(){
    int f=1,x=0;
    char c=getchar();
    while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
    while(isdigit(c)){x=x*10+(c-'0');c=getchar();}
    return f*x;
}
inline void write(int x){
    if(x<0) putchar('-');x=-x;
    if(x>9) write(x/10);
    putchar(x%10+'0');
}
signed main(){

    return ssj;
}

2025.10.23 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
using namespace std;
const int N=100010;
inline int read(){
    int f=1,x=0;
    char c=getchar();
    while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
    while(isdigit(c)){x=x*10+(c-'0');c=getchar();}
    return f*x;
}
signed main(){

    return ssj;
}

2025.11.9 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
using namespace std;
const int N=100010;
inline void read(int &k){
    int f=1,x=0;
    char c=getchar();
    while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
    while(isdigit(c)){x=x*10+(c-'0');c=getchar();}
    k=f*x;
}
signed main(){

    return ssj;
}

2025.11.16 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
using namespace std;
const int N=100010;
inline void read(int &k){
    int f=1,x=0;
    char c=getchar();
    while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
    while(isdigit(c)){x=(x<<3)+(x<<1)+(c^'0');c=getchar();}
    k=f*x;
}
signed main(){

    return ssj;
}

2025.12.10 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
//#define getchar() _getchar_nolock()
using namespace std;
const int N=100010;
inline void read(int &k){
    int f=1,x=0;
    char c=getchar();
    while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
    while(isdigit(c)){x=(x<<3)+(x<<1)+(c^'0');c=getchar();}
    k=f*x;
}
signed main(){

    return ssj;
}

2025.12.11 版:

#include<bits/stdc++.h>
#define int long long
#define ssj 0
//#define getchar getchar_unlocked
namespace fast_read{
    inline void read(int &k){
        int f=1,x=0;
        char c=getchar();
        while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
        while(isdigit(c)){x=(x<<3)+(x<<1)+(c^'0');c=getchar();}
        k=f*x;
    }
}
using namespace fast_read;
using namespace std;
const int N=100010;
signed main(){

    return ssj;
}

2025.12.15 版

#include<bits/stdc++.h>
#define int long long
#define ssj 0
namespace fast_read{
    const int L=1<<20;
    char buf[L],*f=buf,*e=buf;
    inline char get_char(){
        if(f==e){
            e=buf+fread(f=buf,1,L,stdin);
            if(f==e) return EOF;
        }
        return *(f++);
    }
    template<typename T> inline void read(T &x){
        x=0;bool n=0;char c=get_char();
        while(!isdigit(c)) c=get_char();
        if(c=='-') n=1,c=get_char();
        while(isdigit(c)) x=(x<<3)+(x<<1)+(c^48),c=get_char();
        if(n) x=-x;
    }
}
using namespace fast_read;
using namespace std;
const int N=100010;
signed main(){

    return ssj;
}

2026.1.2 版(2025.12.11版有误)

#include<bits/stdc++.h>
#define int long long
#define ssj 0
namespace fast_read{
    const int L=1<<20;
    char buf[L],*f=buf,*e=buf;
    inline char get_char(){
        if(f==e){
            e=buf+fread(f=buf,1,L,stdin);
            if(f==e) return EOF;
        }
        return *(f++);
    }
    template<typename T> inline void read(T &x){
        x=0;bool n=0;char c=get_char();
        while(!isdigit(c)) {if(c=='-') n=1;c=get_char();}
        while(isdigit(c)) {x=(x<<3)+(x<<1)+(c^48);c=get_char();}
        if(n) x=-x;
    }
}
using namespace fast_read;
using namespace std;
const int N=100010;
signed main(){

    return ssj;
}

2026.1.18 版

#include<bits/stdc++.h>
#define int long long
namespace fast_read{
    const int L=1<<20;
    char buf[L],*f=buf,*e=buf;
    inline char get_char(){
        if(f==e){
            e=buf+fread(f=buf,1,L,stdin);
            if(f==e) return EOF;
        }
        return *(f++);
    }
    template<typename T> inline void read(T &x){
        x=0;bool n=0;char c=get_char();
        while(!isdigit(c)) {if(c=='-') n=1;c=get_char();}
        while(isdigit(c)) {x=(x<<3)+(x<<1)+(c^48);c=get_char();}
        if(n) x=-x;
    }
}
using namespace fast_read;
using namespace std;
const int N=100010;
signed main(){

    return 0;
}

2026.3.17 版

#include<bits/stdc++.h>
#define int long long
#define ssj 0
namespace fast_read{
    inline void read(int &k){
        int f=1,x=0;
        char c=getchar();
        while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
        while(isdigit(c)){x=(x<<3)+(x<<1)+(c^'0');c=getchar();}
        k=f*x;
    }
}
using namespace fast_read;
using namespace std;
const int N=100010;
signed main(){

    return ssj;
}

2026.6.21 版

#include<bits/stdc++.h>
#define ssj 0
using namespace std;
typedef long long ll;
const int N=1010;
/* Fast Read */
class FastScanner{
private:
    static const int BUFSIZE=1<<20;
    int idx,size;
    char buf[BUFSIZE];
    inline char getchar(){
        if (idx>=size){size=fread(buf, 1, BUFSIZE, stdin);idx=0;if(size==0) return 0;}
        return buf[idx++];
    }
public:
    FastScanner():idx(0),size(0){}
    template <typename T>
    bool readint(T &out){
        char c=getchar();
        if (!c) return false;
        while(c!='-'&&(c<'0'||c>'9')){c=getchar();if(!c) return false;}
        T sign=1,num=0;
        if(c=='-'){sign=-1;c=getchar();}
        while(c>='0'&&c<='9'){num=num*10+(c-'0');c=getchar();}
        out=num*sign;
        return true;
    }
    bool readchar(char &c){
        c=getchar();
        while(c<=' ') {if(!c) return 0;c=getchar();}
        return true;
    }
    bool readstring(string &s){
        char c;readchar(c);
        if(!c) return false;
        while(c>' '){s+=c;c=getchar();}
        return true;
    }
}Read;
int main(){

    return ssj;
}

2026.7.12 版

记得-O2 -std=c++17 -g3 -pg -DWLSSJ

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ssj 0
/*---------- Paste Clipboard ----------*/
#if defined(WLSSJ)&&defined(_WIN32)
#include <io.h>
struct _Clip{
    FILE*f=_popen("powershell -NoP -c Get-Clipboard 2>nul","r");
    _Clip(){if(f)_dup2(_fileno(f),0);}
    ~_Clip(){if(f)_pclose(f);}
}_clip;
#endif
/*---------- Debug Information ----------*/
#ifdef WLSSJ
template<typename T>struct is_pair:false_type{};
template<typename A,typename B>struct is_pair<pair<A,B>>:true_type{};
template<typename T>inline constexpr bool is_pair_v=is_pair<decay_t<T>>::value;
template<typename T,typename=void>struct is_iterable:false_type{};
template<typename T>struct is_iterable<T,void_t<decltype(begin(declval<const T&>())),decltype(end(declval<const T&>()))>>:bool_constant<!is_same_v<decay_t<T>,string>&&!is_array_v<remove_reference_t<T>>>{};
template<typename T>inline constexpr bool is_iterable_v=is_iterable<decay_t<T>>::value;
template<typename T>void _dbg_val(ostringstream&oss,const T&x){
    using DT=decay_t<T>;
    if constexpr(is_same_v<DT,string>||is_same_v<DT,const char*>||is_same_v<DT,char*>||is_arithmetic_v<DT>)oss<<x;
    else if constexpr(is_pair_v<DT>){oss<<"(";_dbg_val(oss,x.first);oss<<", ";_dbg_val(oss,x.second);oss<<")";}
    else if constexpr(is_iterable_v<DT>){
        oss<<"{";bool first=true;for(const auto&e:x){if(!first)oss<<", ";_dbg_val(oss,e);first=false;}oss<<"}";
    }else oss<<x;
}
template<typename...Args>void _dbg_out(ostringstream&oss,Args&&...args){
    bool first=true;((oss<<(first?"":", "),_dbg_val(oss,forward<Args>(args)),first=false),...);
}
#define dbg(...) do{ostringstream _oss;_oss<<"[Line "<<__LINE__<<"]["<<#__VA_ARGS__<<"]: ";_dbg_out(_oss,__VA_ARGS__);cerr<<_oss.str()<<"\n";}while(0)
#else
#define dbg(...)
#endif
/*---------- Fast Read ----------*/
namespace fast_read{
    inline bool read(int&k){
        int f=1,x=0;char c=getchar();
        while(!isdigit(c)){if(c==EOF)return false;if(c=='-')f=-1;c=getchar();}
        while(isdigit(c)){x=(x<<3)+(x<<1)+(c^'0');c=getchar();}
        k=f*x;return true;
    }
}
using namespace fast_read;
const int N=100010;
signed main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    return ssj;
}

2026.7.18 版

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define ssj 0
const int N=100010;
/*---------- Paste Clipboard ----------*/
#if defined(WLSSJ)&&defined(_WIN32)
#include <io.h>
struct _Clip{
    FILE*f=_popen("powershell -NoP -c Get-Clipboard 2>nul","r");
    _Clip(){if(f)_dup2(_fileno(f),0);}
    ~_Clip(){if(f)_pclose(f);}
}_clip;
#endif
/*---------- Debug Information ----------*/
#ifdef WLSSJ
template<typename T>struct is_pair:false_type{};
template<typename A,typename B>struct is_pair<pair<A,B>>:true_type{};
template<typename T>inline constexpr bool is_pair_v=is_pair<decay_t<T>>::value;
template<typename T,typename=void>struct is_iterable:false_type{};
template<typename T>struct is_iterable<T,void_t<decltype(begin(declval<const T&>())),decltype(end(declval<const T&>()))>>:bool_constant<!is_same_v<decay_t<T>,string>&&!is_array_v<remove_reference_t<T>>>{};
template<typename T>inline constexpr bool is_iterable_v=is_iterable<decay_t<T>>::value;
template<typename T>void _dbg_val(ostringstream&oss,const T&x){
    using DT=decay_t<T>;
    if constexpr(is_same_v<DT,string>||is_same_v<DT,const char*>||is_same_v<DT,char*>||is_arithmetic_v<DT>)oss<<x;
    else if constexpr(is_pair_v<DT>){oss<<"(";_dbg_val(oss,x.first);oss<<", ";_dbg_val(oss,x.second);oss<<")";}
    else if constexpr(is_iterable_v<DT>){
        oss<<"{";bool first=true;for(const auto&e:x){if(!first)oss<<", ";_dbg_val(oss,e);first=false;}oss<<"}";
    }else oss<<x;
}
template<typename...Args>void _dbg_out(ostringstream&oss,Args&&...args){
    bool first=true;((oss<<(first?"":", "),_dbg_val(oss,forward<Args>(args)),first=false),...);
}
#define dbg(...) do{ostringstream _oss;_oss<<"[Line "<<__LINE__<<"]["<<#__VA_ARGS__<<"]: ";_dbg_out(_oss,__VA_ARGS__);cerr<<_oss.str()<<"\n";}while(0)
#else
#define dbg(...)
#endif
signed main(){
    cin.tie(nullptr)->sync_with_stdio(false);
    return ssj;
}

2026.10.2 版

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
const int N=100010;
/*---------- Paste Clipboard ----------*/
#if defined(WLSSJ)&&defined(_WIN32)
#include <io.h>
struct _Clip{
    FILE*f=_popen("powershell -NoP -c Get-Clipboard 2>nul","r");
    _Clip(){if(f)_dup2(_fileno(f),0);}
    ~_Clip(){if(f)_pclose(f);}   
}_clip;
#endif
signed main(){
    cin.tie(0)->sync_with_stdio(0);

    return 0;
}