#1777. C++-向量-向量大小函数size()、capacity()、max_size()
C++-向量-向量大小函数size()、capacity()、max_size()
Background
Description
向量大小函数size()、capacity()、max_size()
Format
Input
Output
Samples
size=0 capacity=0 max_size=2305843009213693951
size=1 capacity=1 max_size=2305843009213693951
size=2 capacity=2 max_size=2305843009213693951
size=3 capacity=4 max_size=2305843009213693951
size=4 capacity=4 max_size=2305843009213693951
size=5 capacity=8 max_size=2305843009213693951
size=6 capacity=8 max_size=2305843009213693951
size=7 capacity=8 max_size=2305843009213693951
size=8 capacity=8 max_size=2305843009213693951
size=9 capacity=16 max_size=2305843009213693951
0
1
2
3
4
5
6
7
8
9
Limitation
1s, 1024KiB for each test case.