C、传统 C++ &xG>"sJ
G/:;Qig
#include <assert.h> //设定插入点 O]SjShp
#include <ctype.h> //字符处理 VgHVj)ir
#include <errno.h> //定义错误码 Ne)H*DT
#include <float.h> //浮点数处理 e==}qQ
#include <fstream.h> //文件输入/输出 '<.@a"DnJ
#include <iomanip.h> //参数化输入/输出 D.hj9
#include <iostream.h> //数据流输入/输出 gxS*rzCG
#include <limits.h> //定义各种数据类型最值常量 8R;)WlLu=
#include <locale.h> //定义本地化函数 fP>*EDn@xg
#include <math.h> //定义数学函数 H +O7+=&
#include <stdio.h> //定义输入/输出函数 DRC2U%[
#include <stdlib.h> //定义杂项函数及内存分配函数 jW^@lH
EU
#include <string.h> //字符串处理 kDAPT_Gid
#include <strstrea.h> //基于数组的输入/输出 c 5&
_'&
#include <time.h> //定义关于时间的函数 u&HLdSHe
#include <wchar.h> //宽字符处理及输入/输出 Bn 5]{Df
#include <wctype.h> //宽字符分类 =N5~iMorD-
lj{J w.t
////////////////////////////////////////////////////////////////////////// 6^M!p4$hF
2cy: l03
标准 C++ (同上的不再注释) s%K9;(RWI
-hx' T6G%
#include <algorithm> //STL 通用算法 N<lO!x1[H*
#include <bitset> //STL 位集容器 ^a6c/2K
#include <cctype> '$@bTW
#include <cerrno> M PhG:^g
#include <clocale> ,U\F<$O
#include <cmath> %z}{jqD&:X
#include <complex> //复数类 ai!zb2j!E
#include <cstdio> @pcmVsIp
#include <cstdlib> |2#)lGA
#include <cstring> L{py\4z'_
#include <ctime> U,?[x2LF
#include <deque> //STL 双端队列容器 cN}Aeo
#include <exception> //异常处理类 @j/UDM
#include <fstream> :`~;~gW<
#include <functional> //STL 定义运算函数(代替运算符) k?%?EsR
#include <limits> ^h}xFiAV#
#include <list> //STL 线性列表容器 bG`aF*10)!
#include <map> //STL 映射容器 dWhki|c
#include <iomanip> s}NE[Tw
#include <ios> //基本输入/输出支持 {s8v0~
#include <iosfwd> //输入/输出系统使用的前置声明 E>t5/^c)*w
#include <iostream> HAof,* h$
#include <istream> //基本输入流 \>b
:
#include <ostream> //基本输出流 8J}gj7^8
#include <queue> //STL 队列容器 osS?SuQT E
#include <set> //STL 集合容器 JVPl\I
#include <sstream> //基于字符串的流 r &<sSE;5
#include <stack> //STL 堆栈容器 W+v7OSd92
#include <stdexcept> //标准异常类 VM
3~W
#include <streambuf> //底层输入/输出支持 s bl>i
#include <string> //字符串类 g%P6 f
#include <utility> //STL 通用模板类 s<f<:BC
#include <vector> //STL 动态数组容器 73b(A|kQ@
#include <cwchar> Qy>n]->%
#include <cwctype> X,)`<
>=O
G4=R4'hC
using namespace std; hRU.^Fn#%
{$,t^hd
////////////////////////////////////////////////////////////////////////// lr>P/W\
`1AVw]k
C99 增加 oa4{s&db-
I{e[Y_
#include <complex.h> //复数处理 zGDLF`
#include <fenv.h> //浮点环境 UMcQqV+vT
#include <inttypes.h> //整数格式转换 JDTlzu1hR
#include <stdbool.h> //布尔环境 4CUzp.S`h
#include <stdint.h> //整型环境 5crd.1@^
#include <tgmath.h> //通用类型数学宏