Blue Bridge Cup Python Group - Space

Blue Bridge Cup Python Group - Space

This question is a fill-in-the-blank question. After calculating the result, use the output statement in the code to output the filled result.

Xiaolan is going to open an array with 256MB of memory space. Each element of the array is a 32-bit binary integer. If you do not consider the space occupied by the program and the auxiliary space required to maintain memory, how many 32-bit binary numbers can be stored in 256MB of space Integer?

Running limit
Maximum running time: 1s
Maximum running memory: 128M

import os
import sys
#32位二进制为4个字节(4B)
n = 256*1024*1024
print(n//4)

The answer is 67108864

Thank you for your support. Your one-click three-connection is the biggest driving force for Ganggang students!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324321847&siteId=291194637