Java 11

백준 17219번 (비밀번호 찾기) 자바 Java11

문제 : 비밀번호 찾기 시간 제한 : 5 sec 메모리 제한 : 256 MB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br =..

백준 11650번 (좌표 정렬하기) 자바 Java11

문제 : 좌표 정렬하기 시간 제한 : 1 sec 메모리 제한 : 256 MB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import java.util.*; class Point implements Comparator{ int xpos; int ypos; Point(){ } Point(int x, int y){ this.xpos = x; this.ypos = y; } public int compare(Point o1, Point o2) { // TODO Auto-generated method stub if(o1.xpos==o2.xpos) { return o1.ypos-o2.ypo..

백준 1271번 (엄청난 부자2) 자바 Java11

문제 : 엄청난 부자2 시간 제한 : 2 sec 메모리 제한 : 128 MB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); String[] temp = str.split(" "); BigInteger m = new BigInteger(temp[0]); BigInteger n = new BigInteger(temp[1]); System.out.println(m.divide(n)); Syst..