- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 ACM_1789_ArrayList存储Hashtable及Hashtable遍历方法
import java.util.ArrayList;import java.util.Hashtable;import java.util.Scanner;public class ACM_1789 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generate
2013-02-05 05:07:23 323
原创 ACM_1789_(并查集)数组类似tree结构的使用
import java.util.Scanner;public class ACM_1789_2 { /** * @param args */ //define global variables public static int[] pre = new int[30000+1]; public static int n = 0; public static int m
2013-02-05 05:00:55 232
原创 ACM_1494
import java.util.Scanner;public class ACM_1494 { public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int u = s.nextInt(); int d = s.nextIn
2013-02-05 02:01:38 382
原创 ACM_1240_String和char转换
import java.util.ArrayList;import java.util.Scanner;public class ACM_1240 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner s =
2013-02-04 04:03:36 207
原创 ACM_1045_读取float类型,定义double类型
import java.util.Scanner;public class ACM_1045 { public static void main(String[] args){ Scanner s = new Scanner(System.in); while(s.hasNextFloat()){ float a = s.nextFloat();
2013-02-04 02:20:29 312
原创 ACM_3479_String数组
import java.util.Scanner;public class ACM_3479 { public static void main(String args[]){ //construct String array String[] shengxiao = new String[12]; shengxiao[0]="Rat"; shengxiao
2013-02-04 02:16:46 200
原创 ACM_3207_HashTable
import java.util.Hashtable;import java.util.Scanner;public class ACM_3207 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //construc
2013-02-04 02:14:43 237
原创 ACM_1115_String,Char,int类型转换,递归思想
题目:BackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resultin
2013-02-04 02:05:06 279
原创 ACM_1048_四舍五入到小数点后两位
题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=48Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has d
2013-01-30 05:37:57 475
原创 ACM_1001_Java读取控制台等
题目:Calculate a + bInputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.OutputFor each pair of input integers a and b y
2013-01-30 05:25:15 286
原创 Print Pyramid
import java.util.Arrays;/* * print a Pyramid constitute by * */public class Pyramid { /* * entry of the program */ public static void main(String[] args){ printPyramid(21,'*'); }
2013-01-29 23:37:40 572
原创 matlab tree 结构
From matlab: matlab tree将该链接中的文件包下载,解压,然后将@tree copy到正在编辑的文件夹中,即可使用使用要点记载:1.添加根节点: t = tree(' I am the root')其中,‘I am the root’ 为根节点所存储的内容2.添加节点t = t.addnode(1,'I am the left
2013-01-10 13:46:47 3935
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人