diff --git a/jlh/src/main/java/com/jlh/viewer/acm/HDU1004.java b/jlh/src/main/java/com/jlh/viewer/acm/HDU1004.java new file mode 100644 index 0000000000000000000000000000000000000000..e9fe6057765309e05f92e9a74428d374009eee09 --- /dev/null +++ b/jlh/src/main/java/com/jlh/viewer/acm/HDU1004.java @@ -0,0 +1,57 @@ +package com.jlh.viewer.acm; + +import java.util.Scanner; + +/** + * com.jlh.viewer.acm + * Created by ASUS on 2017/3/14. + * 19:43 + */ +public class HDU1004 { + private static String index[]=new String[1005]; + private static int length; + private static int count[]=new int[1005]; + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + while (true){ + int n= sc.nextInt(); + if (n==0) + break; + sc.nextLine(); + init(n); + for (int i=0;i