C、传统 C++ u@|izRk
UeWEncN(
#include <assert.h> //设定插入点 R=M"g|U6
#include <ctype.h> //字符处理 0kN;SSX!
#include <errno.h> //定义错误码 JA W}]:jC
#include <float.h> //浮点数处理 tX;00g;U.
#include <fstream.h> //文件输入/输出 4d&#NP
#include <iomanip.h> //参数化输入/输出 {FzL@!||
#include <iostream.h> //数据流输入/输出 Ol ,;BZHc\
#include <limits.h> //定义各种数据类型最值常量 36>pa
#include <locale.h> //定义本地化函数 xdWfrm$;ZA
#include <math.h> //定义数学函数 (Wkli:Lq
#include <stdio.h> //定义输入/输出函数 2
q RXA
#include <stdlib.h> //定义杂项函数及内存分配函数 Y"
9 o
#include <string.h> //字符串处理 rkhQoYZ[
#include <strstrea.h> //基于数组的输入/输出 dz/'
m7
#include <time.h> //定义关于时间的函数 @|Z:7n6S
#include <wchar.h> //宽字符处理及输入/输出 :xw2\:5~0
#include <wctype.h> //宽字符分类 [?3*/*V
34VyR
a
////////////////////////////////////////////////////////////////////////// -q7A\8C
O+;0|4V%
标准 C++ (同上的不再注释) *S_e:^
hoxn! x$?
#include <algorithm> //STL 通用算法 { zoUU
#include <bitset> //STL 位集容器 &tY3nr
#include <cctype>
;/i"W
#include <cerrno> vQrce&
#include <clocale> pAS!;t=n,
#include <cmath> rQiX7
#include <complex> //复数类 EubR]ckB
#include <cstdio> SNP.n))
#include <cstdlib> d_9Fc"C~
#include <cstring> -1Y9-nn[m
#include <ctime> gyH'92ck
#include <deque> //STL 双端队列容器 /x.TF'Z*
#include <exception> //异常处理类 &pwSd
#include <fstream> #!p=P<4M
#include <functional> //STL 定义运算函数(代替运算符) 6cof Zc$
#include <limits> >}QRMn|@H
#include <list> //STL 线性列表容器 w?CbATQ
#include <map> //STL 映射容器 0P`wh=")
#include <iomanip> `mPmEV<
#include <ios> //基本输入/输出支持 ^_4TDC~h
#include <iosfwd> //输入/输出系统使用的前置声明 ~ZU;0#
#include <iostream> C("PCD
#include <istream> //基本输入流 0
eZfHW&
#include <ostream> //基本输出流 9@AGx<S1
#include <queue> //STL 队列容器 %VYQz)yW
#include <set> //STL 集合容器 G)gf +)W
#include <sstream> //基于字符串的流 A(duUl~
#include <stack> //STL 堆栈容器 `}o4 &$
#include <stdexcept> //标准异常类 !mFo:nQ)}
#include <streambuf> //底层输入/输出支持 f uojf+i
#include <string> //字符串类 ja$>>5<q
#include <utility> //STL 通用模板类 WujIaJt-
#include <vector> //STL 动态数组容器 }_XW?^/8
#include <cwchar> sh.xp8^)^>
#include <cwctype> :1u>T3L.z
khT&[!J{>
using namespace std; ,CW]d#P|
o
D;
////////////////////////////////////////////////////////////////////////// ,2S
<#p!
/2^cty.BXw
C99 增加 J*6I@_{/U
E%eao$
#include <complex.h> //复数处理 3ojK2F(1D
#include <fenv.h> //浮点环境 1wUZ0r1'
#include <inttypes.h> //整数格式转换 Cw?AP6f%
#include <stdbool.h> //布尔环境 xrx{8pf
#include <stdint.h> //整型环境 1!/+~J[#
#include <tgmath.h> //通用类型数学宏