Java_ACM
文章平均质量分 77
dai_xingxing
这个作者很懒,什么都没留下…
展开
-
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 · 479 阅读 · 0 评论 -
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 · 390 阅读 · 0 评论 -
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 · 329 阅读 · 0 评论 -
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 · 212 阅读 · 0 评论 -
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 · 318 阅读 · 0 评论 -
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 · 205 阅读 · 0 评论 -
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 · 242 阅读 · 0 评论 -
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 · 284 阅读 · 0 评论 -
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 · 292 阅读 · 0 评论 -
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 · 238 阅读 · 0 评论