목록coding study/baekjoon (117)
happy coding
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String[] input = br.readLine().split(" "); long A = Long.parseLong(input[0]); long B = Long.parseLong(input[1]); long V = Long.parseLong(input[2]); lo..
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integer.parseInt(st.nextToken()); int b = Integer.parseInt(st.nextToken()); System.out.println(gcd(a,b)); System.out.println(lc..
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); double sum = 0.0; int max = -1; StringTokenizer st = new StringTokenizer(br.readLine()); for (int i=0 ; i max) { max = value; } sum += value; } double mean = (double..
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[][] ch = new char[5][15]; int max = 0; for (int i=0 ; i
import java.io.*; import java.math.*; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int[] array = new int[N]; for (int i=0 ; i
import java.io.*; import java.math.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); //나머지가 0일경우 그 값을 출력, for (int i=2 ; i
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st1 = new StringTokenizer(br.readLine()); int N = Integer.parseInt(st1.nextToken()); //가로세로 길이 int K = Integer.parseInt(st1.nextToken()); //이미지를 늘릴 배수 //해당 배열 일단 생성 int[][] array = new int[N..
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(br.readLine()); long[] array = new long[T]; for (int i=0 ; i