C、传统 C++ `yua?n
I#:4H2H6
#include <assert.h> //设定插入点 -*0U&]T
#include <ctype.h> //字符处理 =8 Jq'-da
#include <errno.h> //定义错误码 MryY<s
#include <float.h> //浮点数处理 5tu 4uYp;
#include <fstream.h> //文件输入/输出 Ov~>* [
#include <iomanip.h> //参数化输入/输出 )tR@\G >%
#include <iostream.h> //数据流输入/输出 sy+tLDMd
#include <limits.h> //定义各种数据类型最值常量 %1PNP<3r0
#include <locale.h> //定义本地化函数 :J;*]o:
#include <math.h> //定义数学函数 {$qLMx';
#include <stdio.h> //定义输入/输出函数 +m1y#|08
#include <stdlib.h> //定义杂项函数及内存分配函数 v^Pjvv =
#include <string.h> //字符串处理 MN. $a9m
#include <strstrea.h> //基于数组的输入/输出 r|0wIpi6Q
#include <time.h> //定义关于时间的函数 :"~n`
Q2[
#include <wchar.h> //宽字符处理及输入/输出 C1SCV^#
#include <wctype.h> //宽字符分类 $n9Bp'<
{-e|x&-
////////////////////////////////////////////////////////////////////////// 3q$"`w
OOX[xv!b
标准 C++ (同上的不再注释) !I[|\ 4j
&-M}:'
#include <algorithm> //STL 通用算法 UNKr
FYl
#include <bitset> //STL 位集容器 /UPe@
#include <cctype> YhFd0A?]
#include <cerrno> 0%GQXiy
#include <clocale> f-l(H="e
#include <cmath> }*M>gvPo
#include <complex> //复数类 x`gsD3C
#include <cstdio> 4^AdSuV
#include <cstdlib> Qj',&b
#include <cstring> /4#A|;d_
#include <ctime> 0fQMOTpOp
#include <deque> //STL 双端队列容器 ^,N=GZRWW
#include <exception> //异常处理类 dG*2-v^G
#include <fstream> =?gDM[t^
#include <functional> //STL 定义运算函数(代替运算符) B|6_4ry0U
#include <limits> QwgP+ M+
#include <list> //STL 线性列表容器 "1%YtV5R{
#include <map> //STL 映射容器 EnnE@BJ"
#include <iomanip> u40<>A
#include <ios> //基本输入/输出支持 f"g-Hbl5
#include <iosfwd> //输入/输出系统使用的前置声明 t7qY!S (
#include <iostream> |$a!Zx94^
#include <istream> //基本输入流 HmZ*
#include <ostream> //基本输出流 QcG-/_,'}
#include <queue> //STL 队列容器 }2~$"L,_
#include <set> //STL 集合容器 7C@%1kL
#include <sstream> //基于字符串的流 "3X~BdH&J
#include <stack> //STL 堆栈容器 KO5! (vi@
#include <stdexcept> //标准异常类 3zuYN-;
#include <streambuf> //底层输入/输出支持 jK9#.
0
#include <string> //字符串类 hNF.
#include <utility> //STL 通用模板类 7,&M6<~
#include <vector> //STL 动态数组容器 { x/~gp
#include <cwchar> ;7w4BJcq']
#include <cwctype> eg
Zb)pP
4vbtB2
using namespace std; G [$u`mxV^
Bi$nYV)-l
////////////////////////////////////////////////////////////////////////// G[M{TS3&Ds
2
rx``,7Q
C99 增加 1/%g
VB8
`c%{M4bF\
#include <complex.h> //复数处理 nH7i)!cI~
#include <fenv.h> //浮点环境 BEnIyVU;L
#include <inttypes.h> //整数格式转换 k9vzxZ%s:
#include <stdbool.h> //布尔环境 m6^n8%
#include <stdint.h> //整型环境 !,zRg5Wp4
#include <tgmath.h> //通用类型数学宏