【文件属性】:
文件名称:扩展矩阵leetcode-templates:我的ICPC编码模板
文件大小:21KB
文件格式:ZIP
更新时间:2021-07-01 03:05:45
系统开源
扩展矩阵leetcode
GitHub
无法加载
MathJax
数学公式,可以通过安装解决。
IO
及其他
快速读写
template
inline
const
T
read()
{
T
x
=
0,
f
=
1;
char
ch
=
getchar();
while
(ch
<
'0'
or
ch
>
'9')
{
if
(ch
==
'-')
f
=
-1;
ch
=
getchar();
}
while
(ch
>=
'0'
and
ch
<=
'9')
{
x
=
(x
<<
3)
+
(x
<<
1)
+
ch
-
'0';
ch
=
getchar();
}
return
x
*
f;
}
template
inline
void
write(T
x,
bool
ln)
{
if
(x
<
0)
{
putchar('-');
x
=
-x;
}
if
(x
>
9)
write(x
/
10,
false);
putchar(x
%
10
+
'0');
if
(ln)
putchar(10);
}
关闭同步流
【文件预览】:
templates-main
----.gitignore(1KB)
----LICENSE(1KB)
----README.md(120KB)