- 博客(11)
- 资源 (2)
- 收藏
- 关注
原创 冒泡排序 java
import java.util.*; public class maino { public static void main(String[] args) { Scanner cin = new Scanner(System.in); String num; int temp;
2014-02-13 13:58:05 484
原创 Java链接MySQL数据库 操作
import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Set;//import java.util.*; public cla
2014-02-13 04:00:24 684
原创 Java Mysql 初级操作
JAVA MySQL 插入 查询import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.Set;//import java.ut
2014-01-29 17:40:55 567
转载 JAVA的哈希表运用
哈希表是一种重要的存储方式,也是一种常见的检索方法。其基本思想是将关系码的值作为自变量,通过一定的函数关系计算出对应的函数值,把这个数值解释为结点的存储地址,将结点存入计算得到存储地址所对应的存储单元。检索时采用检索关键码的方法。现在哈希表有一套完整的算法来进行插入、删除和解决冲突。在Java中哈希表用于存储对象,实现快速检索。 Java.util.Hashtable提供了种方法让用户使用哈
2014-01-20 19:19:47 948
转载 【九度】题目1006:ZOJ问题
题目描述:对给定的字符串(只包含'z','o','j'三种字符),判断他是否能AC。是否AC的规则如下:1. zoj能AC;2. 若字符串形式为xzojx,则也能AC,其中x可以是N个'o' 或者为空;3. 若azbjc 能AC,则azbojac也能AC,其中a,b,c为N个'o'或者为空;输入:输入包含多组测试用例,每行有一个只包含'z','o','j'三
2014-01-14 10:40:18 662
转载 【九度】题目1005:Graduate Admission
题目描述: It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if you could write a program to automate
2014-01-14 10:36:54 586
原创 【九度】题目1004:Median
Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is 15. The
2014-01-05 23:16:53 668
原创 【九度】题目1003:A+B
题目描述:给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。现在请计算A+B的结果,并以正常形式输出。输入:输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 输出:请计算A+B的结果,并以正常形式输出,每组数据占一行。样例输入:-234,567,890 123,456,789
2014-01-03 12:16:45 664
转载 【九度】题目1002:Grading
题目描述: Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as possible. One way is to assign each exam prob
2013-12-31 07:45:30 764
原创 【九度】题目1001:A+B for Matrices
题目描述: This time, you are supposed to find A+B where A and B are two matrices, and then count the number of zero rows and columns.输入: The input consists of several test cases, each
2013-12-28 21:10:23 764
原创 【九度】题目1000:计算a+b
题目描述:求整数a,b的和。输入:测试案例有多行,每行为a,b的值。输出:输出多行,对应a+b的结果。样例输入:1 24 56 9样例输出:3915import java.util.Scanner;public class Main { public static void main(Stri
2013-12-28 21:06:57 909
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人