LanQiaoTestCodes/空间.java

16 lines
409 B
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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));
}
}