#10872 - java ํฉํ ๋ฆฌ์ผ import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int result = 1; for (int i = 1; i ๐โ๏ธBaekjoon/Java 2024.04.20
#2744 - ๋์๋ฌธ์ java import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); for (int i =0; i ๐โ๏ธBaekjoon/Java 2024.04.19
#10699 - java import java.util.Date; import java.util.TimeZone; import java.text.SimpleDateFormat; public class Main { public static void main(String[] args) { Date currentDate = new Date(); SimpleDateFormat df = new SimpleDateFormat("YYYY-MM-dd"); df.setTimeZone(TimeZone.getTimeZone("Asia/Seoul")); System.out.println(df.format(currentDate)); } } ์ง์ญ์ ์ ํํ ๋ ์ง ์ถ๋ ฅํ๊ธฐ ๐โ๏ธBaekjoon/Java 2024.04.19
#27866, #2743 - java import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int i = sc.nextInt(); System.out.println(s.charAt(i-1)); } } import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); System.out.println(s.length()); } } > ๐ charAt() .. ๐โ๏ธBaekjoon/Java 2024.04.15
[2562/JAVA] ์ต๋๊ฐ import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int[] arr = new int[9]; int[] arr2 = new int[9]; int max, index=0; for (int i=0; i ๐โ๏ธBaekjoon/Java 2021.09.09
[10818/JAVA] ์ต์, ์ต๋ import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N; int min = 1000001; int max = -1000001; N = sc.nextInt(); int[] arr = new int[N]; for (int i=0; i max) max = arr[i]; } System.out.printf(min + " " + max); sc.close(); } } ๐โ๏ธBaekjoon/Java 2021.09.09
[10952/JAVA] A+B - 5 import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a; int b; while (true){ a = sc.nextInt(); b= sc.nextInt(); if ( a == 0 && b == 0){ break; } System.out.println(a+b); } sc.close(); } } ๐โ๏ธBaekjoon/Java 2021.09.07
[10871/JAVA] X๋ณด๋ค ์์ ์ import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int X = in.nextInt(); int a[] = new int[N]; for (int i = 0; i < N; i++) { a[i] = in.nextInt(); } for (int i = 0; i < N; i++) { if(a[i] < X) { System.out.printf(a[i] + " "); } } in.close(); } } ๐โ๏ธBaekjoon/Java 2021.09.07