Code Up 기초 100제 JAVA 풀이 (1091~1099)
1091 Scanner Input = new Scanner(System.in); String Str = Input.nextLine(); StringTokenizer Tk = new StringTokenizer(Str, " "); int[] Arr = new int[4]; int i = 0; while(Tk.hasMoreTokens()){ Arr[i++] = Integer.parseInt(Tk.nextToken()); } if((Arr[0] >= -50 && Arr[0] = -50 && Arr[1] = -50 && Arr[2]
Coding Test/CodeUp1000
2021. 1. 25. 02:12
Code Up 기초 100제 JAVA 풀이 (1042~1070)
1042 //1042번 문제 Scanner Input = new Scanner(System.in); String Str = Input.nextLine(); StringTokenizer St = new StringTokenizer(Str, " "); String[] Arr = new String[2]; int i = 0; while(St.hasMoreTokens()){ Arr[i++] = St.nextToken(); } int a = Integer.parseInt(Arr[0]); int b = Integer.parseInt(Arr[1]); int result = a / b; System.out.printf("%d", result); 1043 //1043번 문제 Scanner Input = new Scann..
Coding Test/CodeUp1000
2021. 1. 14. 06:39