2013年1月18日

PriorityQueue 使用方法 POJ 2442 NOJ 1491

摘要: POJ 2442:import java.io.*;import java.util.*;import java.math.*;import java.text.*;public classMain { public static final int MAXN = 105; public static final int MAXM = 100005; public static final int MOD = 10000; public static final int INF = 1000000000; public static final double EPS = 1E-6; int.. 阅读全文

posted @ 2013-01-18 22:28 Sure_Yi 阅读(334) 评论(0) 推荐(0) 编辑

Java学习笔记--Arrays类

摘要: 转载:http://plseye.iteye.com/blog/255698int[] s1={1,2,3,4,5,6}; System.out.printf("操作前 (原件)\t%s%n", Arrays.toString(s1)); int s2[] = Arrays.copyOf(s1, 4);//只复制前4个数据 System.out.printf("操作前 (副本)\t%s%n", Arrays.toString(s2)); s2[0] = 10; s2[1] = 20; s2[2] = 30; s2[3] = 40; System.out. 阅读全文

posted @ 2013-01-18 13:24 Sure_Yi 阅读(195) 评论(0) 推荐(0) 编辑

导航