PS/백준
-
2442 별 찍기 - 5PS/백준 2022. 3. 9. 21:54
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = 1; i
-
2441 별 찍기 - 4PS/백준 2022. 3. 8. 22:04
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = 0; i < loopLeng; i++) { for (int j = 1; j
-
2440 별 찍기 - 3PS/백준 2022. 3. 7. 20:06
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = 1; i
-
2439 별 찍기 - 2PS/백준 2022. 3. 6. 21:02
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = 1; i
-
2438 별 찍기 - 1PS/백준 2022. 3. 6. 20:43
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = 0; i < loopLeng; i++) { for (int j = 0; j
-
10818 최소,최대PS/백준 2022. 3. 4. 23:02
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf.readLine(); StringTokenizer st = new StringTokenizer(buf.readLine()," "); int iValue = 0; int maxVal = -1000001;..
-
8393 합PS/백준 2022. 3. 3. 23:36
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); int total = 0; for (int i=1; i
-
1924 2007년PS/백준 2022. 3. 2. 22:16
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String[] dateArray = buf.readLine().split(" "); String[] weekArray = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; int[] endDays = {31, 28, 31, 3..
-
2739 구구단PS/백준 2022. 3. 1. 11:10
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(buf.readLine()); for (int i = 1; i
-
2742 기찍 NPS/백준 2022. 2. 28. 21:38
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int loopLeng = Integer.parseInt(buf.readLine()); for (int i = loopLeng; 1