diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bfa6a22
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+# Created by .ignore support plugin (hsz.mobi)
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..97626ba
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/libraries/KotlinJavaRuntime.xml b/.idea/libraries/KotlinJavaRuntime.xml
new file mode 100644
index 0000000..207fc74
--- /dev/null
+++ b/.idea/libraries/KotlinJavaRuntime.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..8d8dc8d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.8
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..60e669c
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..9a9fae1
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
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+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ project
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1465651790554
+
+
+ 1465651790554
+
+
+
+
+
+
+
+
+ 1465732948639
+
+
+
+ 1465732948639
+
+
+ 1465733177222
+
+
+
+ 1465733177222
+
+
+ 1465733405947
+
+
+
+ 1465733405947
+
+
+ 1465739412029
+
+
+
+ 1465739412029
+
+
+ 1465739474645
+
+
+
+ 1465739474645
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
deleted file mode 100644
index 1b3b783..0000000
--- a/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# Algorithm-Research
-Algorithm Research of Java
diff --git a/algorithm b/algorithm
new file mode 160000
index 0000000..3e3023c
--- /dev/null
+++ b/algorithm
@@ -0,0 +1 @@
+Subproject commit 3e3023c3c0ce305a6395b2220b37638451155c42
diff --git a/bottleExchange.iml b/bottleExchange.iml
new file mode 100644
index 0000000..245d342
--- /dev/null
+++ b/bottleExchange.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/lib/kotlin-reflect.jar b/lib/kotlin-reflect.jar
new file mode 100644
index 0000000..578ee08
Binary files /dev/null and b/lib/kotlin-reflect.jar differ
diff --git a/lib/kotlin-runtime-sources.jar b/lib/kotlin-runtime-sources.jar
new file mode 100644
index 0000000..5a6848d
Binary files /dev/null and b/lib/kotlin-runtime-sources.jar differ
diff --git a/lib/kotlin-runtime.jar b/lib/kotlin-runtime.jar
new file mode 100644
index 0000000..00e4eb0
Binary files /dev/null and b/lib/kotlin-runtime.jar differ
diff --git a/out/production/bottleExchange/com/github/StringTo.class b/out/production/bottleExchange/com/github/StringTo.class
new file mode 100644
index 0000000..6502895
Binary files /dev/null and b/out/production/bottleExchange/com/github/StringTo.class differ
diff --git a/out/production/bottleExchange/com/timerlink/Bottle.class b/out/production/bottleExchange/com/timerlink/Bottle.class
new file mode 100644
index 0000000..7762329
Binary files /dev/null and b/out/production/bottleExchange/com/timerlink/Bottle.class differ
diff --git a/out/production/bottleExchange/com/timerlink/Main.class b/out/production/bottleExchange/com/timerlink/Main.class
new file mode 100644
index 0000000..245d2d5
Binary files /dev/null and b/out/production/bottleExchange/com/timerlink/Main.class differ
diff --git a/src/com/Test.java b/src/com/Test.java
new file mode 100644
index 0000000..68dc2da
--- /dev/null
+++ b/src/com/Test.java
@@ -0,0 +1,8 @@
+package com;
+
+/**
+ * Created by Newsoul on 2016/6/12.
+ */
+public class Test {
+
+}
diff --git a/src/com/github/StringTo.java b/src/com/github/StringTo.java
new file mode 100644
index 0000000..b46982c
--- /dev/null
+++ b/src/com/github/StringTo.java
@@ -0,0 +1,27 @@
+package com.github;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Scanner;
+
+/**
+ * Created by Newsoul on 2016/6/12.
+ */
+public class StringTo {
+ public int strToInt(String string){
+ string = string.substring(2);
+ String str = Integer.valueOf(string,16).toString();
+ return Integer.valueOf(str);
+ }
+ public static void main(String[] args){
+ Scanner in = new Scanner(System.in);
+ StringTo stringTo = new StringTo();
+ while (in.hasNext()){
+ String s = in.nextLine();
+ if (s.length()>2) {
+ int a = stringTo.strToInt(s);
+ System.out.println(a);
+ }
+ }
+ }
+}
diff --git a/src/com/timerlink/Bottle.java b/src/com/timerlink/Bottle.java
new file mode 100644
index 0000000..f7986f7
--- /dev/null
+++ b/src/com/timerlink/Bottle.java
@@ -0,0 +1,30 @@
+package com.timerlink;
+
+import java.util.*;
+
+public class Main1 {
+ private int exchange(int num){
+ int drunkNum = 0;
+ drunkNum = drunkNum + num/3;
+ int empNum = drunkNum + num%3;
+ while (empNum>2){
+ drunkNum = drunkNum + empNum/3;
+ empNum = empNum/3 + empNum%3;
+ }
+ if (empNum==2){
+ drunkNum = drunkNum + 1;
+ }
+ return drunkNum;
+ }
+ public static void main(String args[]){
+ Main1 main = new Main1();
+ Scanner in = new Scanner(System.in);
+ while (in.hasNext()){
+ String string = in.nextLine();
+ int a = Integer.valueOf(string);
+ int b = main.exchange(a);
+ System.out.println(b);
+ }
+
+ }
+}
diff --git a/src/com/timerlink/Main.java b/src/com/timerlink/Main.java
new file mode 100644
index 0000000..cc16964
--- /dev/null
+++ b/src/com/timerlink/Main.java
@@ -0,0 +1,46 @@
+package com.timerlink;
+
+import java.util.*;
+
+public class Main {
+ public List trans(Set res){
+ Object[] arr = res.toArray();
+ List as = new ArrayList<>();
+ for (int i=0;i res = new TreeSet<>();
+ Scanner in = new Scanner(System.in);
+ int num = 0;
+ int count = 0;
+ boolean fis = true;
+ while (in.hasNext()){
+ int a = 0;
+ try {
+ a = in.nextInt();
+ }catch (Exception e){
+ System.out.println("请输入正整数");
+ }
+ if (!fis) {
+ res.add(a);
+ }
+ if (fis){
+ count = a;
+ fis = false;
+ }
+ num++;
+ if (num>25){
+ break;
+ }
+ }
+ List as = main.trans(res);
+ for (Integer integer:as){
+ System.out.println(integer);
+ }
+ }
+}