Question link http://oj.ecustacm.cn/problem.php?id=1555
topic
Xiaolan is going to use 256MB of memory space to open an array, and each element of the array is a 32-bit binary integer.
How many 32-bit binary integers can be stored in 256MB if the space occupied by the program and the auxiliary space required for maintaining memory are not considered?
problem solving ideas
1 MB = 1024 KB
1 KB = 1024 B
1 B = 8 bit (bit)
So 256 MB = 256 * 1024 * 1024 B
1 bit is 1 bit
So the storage space of 32-bit binary integer is 32 bit = 32 / 8 = 4 B
So the end result is 256*1024*1024/4