题解分享
题解分享简介
空间(结果填空) - 题解
```
public class 空间 {
public static void main(String[] args) {
// TODO Auto-generated method stub
long total = 256L * 1024 * 1024 * 8; // 计算总位数 因为1字节(Byte)= 8位(bit),而1MB = 1024KB, 1KB = 1024字节
long Stored = total / 32; // 计算可以存储的32位整数数量
System.out.println("256MB的空间可以存储的32位二进制整数的数量是: " + Stored);
}
}
```
查看全文
0
0
0
7
空间(结果填空) - 题解
1Byte = 8 bit
4 Byte = 32 bit
1 MB = 1024 KB
1 KB = 1024 Byte
answer = 25610241024/4
0
0
0
6



