社区讨论
求问
学术版参与者 1已保存回复 1
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 1 条
- 当前快照
- 1 份
- 快照标识符
- @m3tzpfo0
- 此快照首次捕获于
- 2024/11/23 17:50 去年
- 此快照最后确认于
- 2025/11/04 14:05 4 个月前
rt,快读输入 115 输出 115115,不知道炸在哪
CPPnamespace 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;
回复
共 1 条回复,欢迎继续交流。
正在加载回复...