C、传统 C++ t4v'X}7q]
^w~B]*A:"
#include <assert.h> //设定插入点 !1=OaOT
#include <ctype.h> //字符处理 6V JudNA
#include <errno.h> //定义错误码 $'Mf$h
#include <float.h> //浮点数处理 ;2&"
#include <fstream.h> //文件输入/输出 breF,d$
#include <iomanip.h> //参数化输入/输出 ^ `Ozw^~
#include <iostream.h> //数据流输入/输出 t&{;6MiE
#include <limits.h> //定义各种数据类型最值常量 fpo{`;&F
#include <locale.h> //定义本地化函数 7(.Z8AO
#include <math.h> //定义数学函数 \2a;z<(
#include <stdio.h> //定义输入/输出函数 8/dMvAB1So
#include <stdlib.h> //定义杂项函数及内存分配函数 s[0`
#include <string.h> //字符串处理 _Wg}#r
#include <strstrea.h> //基于数组的输入/输出 4^2>KC_
#include <time.h> //定义关于时间的函数 OmBz'sp:
#include <wchar.h> //宽字符处理及输入/输出
-NN=(p!<
#include <wctype.h> //宽字符分类 (iir,Ks2C
k"&o)*d
////////////////////////////////////////////////////////////////////////// I]e+5 E0
;]=w6'dP!
标准 C++ (同上的不再注释) ,7)hrA$(
Yn="vpM1
#include <algorithm> //STL 通用算法 j`RG Moq
#include <bitset> //STL 位集容器 Z8xB
a0
#include <cctype> 0,ryy,2
#include <cerrno> =ejU(1 g
#include <clocale> TQ4L~8
#include <cmath> Ri" hU/H{
#include <complex> //复数类 |JYb4J4Ni
#include <cstdio> LiT%d
#include <cstdlib> {P~rf&Ee
#include <cstring> d8jH?P-"
#include <ctime> naf ~#==vc
#include <deque> //STL 双端队列容器 ySO\9#Ho
#include <exception> //异常处理类 9c)#j&2?H
#include <fstream> ;Hk3y+&]a
#include <functional> //STL 定义运算函数(代替运算符) (wZ!OLY%}
#include <limits> ? F
#&F
#include <list> //STL 线性列表容器 <YFDS;b|
#include <map> //STL 映射容器 8ex;g^e
#include <iomanip> NC-K`)
#include <ios> //基本输入/输出支持 JXU?'@QY
#include <iosfwd> //输入/输出系统使用的前置声明 <L qJg
#include <iostream> [ZSC]w^
#include <istream> //基本输入流 nI6ompTX
#include <ostream> //基本输出流 !mUJ["#
#include <queue> //STL 队列容器 sS}:O d
#include <set> //STL 集合容器 Io3-\Ff
#include <sstream> //基于字符串的流 $Xlr@)%
#include <stack> //STL 堆栈容器 !X-\;3kC0
#include <stdexcept> //标准异常类 a#r{FoU{M8
#include <streambuf> //底层输入/输出支持
J3
Q_
#include <string> //字符串类 kMch
#include <utility> //STL 通用模板类 zG ='U
#include <vector> //STL 动态数组容器 lF}@@e)N
#include <cwchar> @L!^2v
#include <cwctype> gp`@dn';
;(`bP
using namespace std; m1%rm-M
Yt(FSb31H
////////////////////////////////////////////////////////////////////////// E! NtD).=S
mv8H:T
C99 增加 Gr2}N"X=
d|NW&PG
#include <complex.h> //复数处理 Pqya%j
#include <fenv.h> //浮点环境 N
{
oVz],
#include <inttypes.h> //整数格式转换 F:ycV~bE
#include <stdbool.h> //布尔环境 ?(=|!`IoO
#include <stdint.h> //整型环境 :gwmk9LZ
#include <tgmath.h> //通用类型数学宏