JAVA

· JAVA/백준
정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); StringTokenizer st; boolean tf= true; ..
· JAVA/백준
https://www.acmicpc.net/problem/2439정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;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()); for(int i =1 ;i
· JAVA/백준
https://www.acmicpc.net/problem/2438정답import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;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()); for(int i=1; i
· JAVA/백준
https://www.acmicpc.net/problem/11022정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;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()); StringBuilder sb=new StringBuilder(); for(int..
· JAVA/백준
https://www.acmicpc.net/problem/11021정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;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()); StringTokenizer st;..
· JAVA/백준
https://www.acmicpc.net/problem/15552정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n =Integer.parseInt(str); ..
· JAVA/백준
https://www.acmicpc.net/problem/25314정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n = Integer.parseInt(str); StringBuilder sb= n..
· JAVA/백준
https://www.acmicpc.net/problem/25304정답import java.io.IOException;import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int x = Integer.parseInt(str); ..
· JAVA/백준
https://www.acmicpc.net/problem/8393 정답import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n = Integer.parseInt(str); int sum=0; f..
· JAVA/백준
https://www.acmicpc.net/problem/10950 정답import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.IOException;import java.util.StringTokenizer;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()); S..
lavender1122
'JAVA' 카테고리의 글 목록 (4 Page)