缺省源

鬼知道我会不会回来改

2022年四改

#include<cstdio>
inline int read(){int x(0),op(0);char ch=getchar();while(ch<'0'||ch>'9')op|=(ch==45),ch=getchar();while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+(ch^48),ch=getchar();return op?-x:x;}

int main(){
    return 0;
}

2022年三改

#include<cstdio>
namespace MyFunction{
    inline int read(){int x(0),op(0);char ch=getchar();while(ch<'0'||ch>'9')op|=(ch==45),ch=getchar();while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+(ch^48),ch=getchar();return op?-x:x;}
    inline void print(int x){if(x<0)putchar('-'),x=-x;static char s[45];unsigned c(0);while(x)s[++c]=x%10^48,x/=10;while(putchar(s[c]),c--);}
    inline void write(int x,char ch){print(x),putchar(ch);}
}
using namespace MyFunction;

int main(){
    return 0;
}

2022年二改

#include<cstdio>
namespace MyFunction{
    inline int read(){int x(0),op(0);char ch=getchar();while(ch<'0'||ch>'9')op|=(ch==45),ch=getchar();while(ch>='0'&&ch<='9')x=(x<<3)+(x<<1)+(ch^48),ch=getchar();return op?-x:x;}
    inline void print(int x){if(x<0)putchar('-'),x=-x;static char s[45];unsigned c(0);while(x)s[++c]=x%10^48,x/=10;while(putchar(s[c]),c--);}
    inline void write(int x,char ch){print(x),putchar(ch);}
    template<typename T>void swap(T& x,T& y){T tmp=x;x=y,y=tmp;}
    template<typename T>T max(T x,T y){return x>y?x:y;}
    template<typename T>T min(T x,T y){return x<y?x:y;}
    template<typename T>T square(T x){return x*x;}
}
using namespace MyFunction;

int main(){
    return 0;
}

2022年一改

#include<cstdio>
#include<cctype>
inline int read(){int x=0;int op=0;char ch=getchar();while(!isdigit(ch))op|=(ch==45),ch=getchar();while(isdigit(ch))x=(x<<3)+(x<<1)+ch-48,ch=getchar();return x;}

int main(){
	return 0;
}

2022年初稿

#include<cstdio>
#include<cctype>
template <typename T>inline void read(T& e){T x=0;int op=0;char ch=getchar();while(!isdigit(ch))op|=(ch==45),ch=getchar();while(isdigit(ch))x=(x<<3)+(x<<1)+ch-48,ch=getchar();e=x;}

int main(){
    return 0;
}
posted @ 2022-08-08 16:12  pokefunc  阅读(58)  评论(0)    收藏  举报