diff --git a/src/BaekJoon/sa11k/10814/Main.java b/src/BaekJoon/sa11k/10814/Main.java new file mode 100644 index 0000000..82a7808 --- /dev/null +++ b/src/BaekJoon/sa11k/10814/Main.java @@ -0,0 +1,41 @@ +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.lang.reflect.Array; +import java.util.Arrays; +import java.util.StringTokenizer; + +class Main{ + public static class Person implements Comparable{ + int age; + String name; + + Person(int age, String name){ + this.age = age; + this.name = name; + } + + @Override + public int compareTo(Person o) { + return this.age - o.age; + } + } + + public static void main(String[] args) throws Exception { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + int N = Integer.parseInt(br.readLine()); + Person[] person = new Person[N]; + + for(int i = 0; i