목록coding study/baekjoon (117)
happy coding
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)); //배열의 개수 입력받기 n int n = Integer.parseInt(br.readLine()); //배열 생성 int[] arr = new int[n]; StringTokenizer st = new StringTokenizer(br.readLine()); for (int i=0;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 st = new StringTokenizer(br.readLine()); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int n = Integer.parseInt(st.nextToken()); int x = Integer.parseInt(st.nex..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; 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()); String input; while ((input = br.readLine()) != null) { StringTokenizer st = new StringT..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws IOException { //버퍼 단위로 입력받기 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //조건이 true인 경우 반복 >> while(true) { //문자열로 저장하기 StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integ..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; 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 t = Integer.parseInt(br.readLine()); int sum = 0; for (int i=0;i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; 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()); for (int i=0;i
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; 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.next..
문제 시험 점수를 입력받아 90 ~ 100점은 A, 80 ~ 89점은 B, 70 ~ 79점은 C, 60 ~ 69점은 D, 나머지 점수는 F를 출력하는 프로그램을 작성하시오. 입력 첫째 줄에 시험 점수가 주어진다. 시험 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다. 출력 시험 성적을 출력한다. #include int main(void){ int s; scanf("%d", &s); if (s >= 90 && s = 80 && s = 70 && s = 60 && s