16 lines
409 B
Java
16 lines
409 B
Java
package LanQiaoOJ;
|
||
/*
|
||
* 小蓝准备用256MB的内存空间开一个数组,数组的每个元
|
||
素都是32位二进制整数,如果不考虑程序占用的空间和维护
|
||
内存需要的辅助空间,请问256MB的空间可以存储多少个
|
||
32位二进制整数?*/
|
||
public class 空间 {
|
||
|
||
public static void main(String[] args) {
|
||
// TODO Auto-generated method stub
|
||
System.out.println(256*1024*1024/4);
|
||
System.out.println(Math.abs(256*1024*1024*8/32));
|
||
}
|
||
|
||
}
|