목록전체 글 (245)
말랑한 하루
[ 소스 코드 ] import java.util.Scanner; public class Solution { static int N; static int M; static boolean visit[] = new boolean[9]; static void permutation(int index, int cnt, int temp[]) { if (cnt == M) { for (int item : temp) System.out.print(item + " "); System.out.println(); return; } for (int i = index+1; i
[ 소스 코드 ] import java.util.Scanner; public class Solution { static int N; static int M; static boolean visit[] = new boolean[9]; static void permutation(int index, int cnt, int temp[]) { if (cnt == M) { for(int item : temp) System.out.print(item+" "); System.out.println(); return; } for(int i=1;i
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for(int t=1;t
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int t = 1; t
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for (int t = 1; t temp ? high : temp; low = low < temp ? low : temp; } // System.out.println((double)((sum-high-low)/8)); System.out.println("#"+t+" "+Math.round((double)(sum-high-low)/8)); } sc.close(); } }
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; class student { double score; int index; student(double score, int index) { this.score = score; this.index = index; } } public class Solution { public static void main(String[] args) throws Throwable { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); String result[] = { "A+", "A0..
[ 핵심풀이 ] [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc = sc.nextInt(); for(int t=1;t
[ 핵심풀이 ] Calendar Class 참고하기 github.com/Jisup/TIL/blob/main/Java/Calendar%20Class.md [ 핵심소스 ] [ Java ] import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tc=sc.nextInt(); for(int t=1;t