求问
  • 板块学术版
  • 楼主__DIOsama__
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/11/23 17:50
  • 上次更新2024/11/23 20:31:02
查看原帖
求问
751866
__DIOsama__楼主2024/11/23 17:50

rt,快读输入 115 输出 115115,不知道炸在哪

namespace Space{

	inline auto
	getc() -> char {
		constexpr int SIZE = 1 << 14;
		static char buf[SIZE], *begin = buf, *end = buf;
		if (begin == end) {
			begin = buf;
			end = buf + fread(buf, 1, SIZE, stdin);
		} return *begin ++;
	}

	template < typename _Tp > inline auto
	read(_Tp& t) -> void {
		int f = 0, ch = getc (); t = 0;
		while (!isdigit(ch)) f |= ch == '-', ch = getc ();
		do {t = (t << 1) + (t << 3) + (ch ^ '0'); ch = getc ();}
		while (isdigit(ch)); t = f ? -t : t;
	}

	template < typename _Tp, typename... _Args > inline auto
	read(_Tp& t, _Args&... args) -> void {
		read(t);read(args...);
	} 
} using namespace Space;

2024/11/23 17:50
加载中...