跳到正文

emo_male_god

798157

AFOed.

资料、奖项与版本

资料

编号
798157
抓取

前个人签名:为了让学生注意自己的形象,将打嗝列为南开禁术 || 总策划辅助线六号院六号线六妓院交作业没有钱老脸一红外星人网页版缺心眼平均线没结婚我对象储物箱老字号领盒饭痴汉笑 || FO来一打 || 继 int mian 之后,又出现了void long long

Steam管家年度总结 || 太好用哩 && 友链 && 喵喵咕咕嘎嘎 && 大事祭 || 补题计划


FAST IO

目前支持功能:整数,字符,string(被我删了)

C++
namespace emo
{
#ifdef ONLINE_JUDGE
	const int BUFSIZE = 100005;
	char InBuf[BUFSIZE], OutBuf[BUFSIZE], *P1 = InBuf, *P2 = InBuf, *P3 = OutBuf;
	inline char getchar() {return (P1 == P2 && (P2 = (P1 = InBuf) + fread(InBuf, 1, BUFSIZE, stdin), P1 == P2) ? EOF : *P1 ++ );}
	inline void flush() {fwrite(OutBuf, 1, P3 - OutBuf, stdout);}
	inline void putchar(const char &c) {P3 == OutBuf + BUFSIZE && (flush(), P3 = OutBuf), *P3 ++ = c;}
	class Flush {public: ~Flush() {flush();}} _;
#endif

	template<typename Type>
	inline void read(Type &x)
	{
		static char c = getchar();
		static bool t; x = t = 0;
		while (!isdigit(c)) t ^= (c == '-'), c = getchar();
		while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
		x = t ? -x : x;
	}
	inline void read(char &c) {c = getchar();}
	inline int read(char *x)
	{
		char *c = x;
		while (!isspace(*c = getchar()) && *c != EOF) c ++ ;
		*c = '\0';
		return c - x;
	}

	template<typename Type>
	inline void write(Type x)
	{
		static short s[35], top(0);
		if (x < 0) x = -x, putchar('-');
		do s[ ++ top] = x % 10, x /= 10; while (x);
		while (top) putchar(s[top -- ] | 48);
	}
	inline void write(const char &x) {putchar(x);}
	template<typename Type> inline void write(Type *x) {while (*x) putchar(*x ++ );}
	template<typename Type>	inline void write(const Type &x, char c) {write(x), putchar(c);}

	template<typename Type, typename ...Args> inline void read(Type &x, Args &...y) {read(x), read(y...);}
	template<typename Type, typename ...Args> inline void write(const Type &x, const Args &...y)
	{write(x), putchar(' '), write(y...); if (sizeof...(y) == 1) putchar('\n');}
} using namespace emo;

博客1

博客2




















\\

回到顶部 收起

共 2 篇
  1. 个人记录

    四边形不等式优化区间DP---证明

    F. Frances Yao 女士的原论文 大部分参考的博客 背景 四边形不等式(quadrangle inequality)应用于 DP 优化,是一个古老的知识点。它起源于 Knuth(高纳德)1971年的一篇论文,用来解决最优二叉搜索树问题。1980年,储枫(F. Franc…

  2. 个人记录

    友链

    该文本为洛谷用户页面的友链列表,按时间顺序排列(除最后两位)。包含多个用户头像及对应个人主页链接,其中最后两位用户分别为“shuffle战神”和“(什么纳粹)”。