C语言可以用stdlib.h吗,可以用math.h吗,可以用long long类型吗,可以用字符串函数库吗,到底能用什么不能用什么啊,可恶的NOIP,连说明都不清不楚。
long long 类型好像是去年争议比较大(因为矩阵取数一题),不过用了好像也没什么事(很多人还是60)
[转]
对C++程序的限制
C++程序中只能使用下列合法基本数据类型
名称
长度
char, unsigned char
1字节
short, unsigned short
2字节
int, unsigned int
4字节
long ,unsigned long
4字节
float
4字节
double
8字节
bool
1字节
C++程序中只能使用下列标准头文件
名称
说明
stdio.h
stdlib.h
math.h
试题明确禁止时不得使用
ctype.h
string.h
errno.h
limits.h
float.h
iostream
string
iterator
bitset
C++程序中允许使用下列模板
模板类型
相关头文件
布尔集合
<bitset>
迭代器
<iterator>
串
<string>
流
<iostream>
C++程序中禁止使用下列模板:
l 序列:vector,list,deque
l 序列适配器:stack,queue,priority_queue
l 关联容器:map, multimap, set, multiset
l 拟容器:valarray
l 散列容器:hash_map, hash_set, hash_multimap, hash_multiset
l 所有的标准库算法。
与这些模板相关的下列头文件禁止出现在程序中:
l <vector >
l <list >
l <deque >
l <stack >
l <map >
l <set >
l <algorithm>