본문 바로가기

분류 전체보기

(392)
152 : 배열1 - 형성평가3 Java 1234567891011121314151617181920212223import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int sum_even = 0, sum_odd = 0; for (int i=0; i
151 : 배열1 - 형성평가2 Java 123456789101112131415import java.util.Scanner; public class Main { static final int LIMIT = 5; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; for (int i=0; i
150 : 배열1 - 형성평가1 Java 1234567891011121314import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); String ch_str = sc.nextLine(); String[] ch_arr = ch_str.split(" "); for (int i=LIMIT-1; 0
563 : 배열1 - 자가진단9 Java 123456789101112131415161718192021222324252627import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int temp = 0; for (int i=0; i
562 : 배열1 - 자가진단8 Java 123456789101112131415161718192021222324import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int sum = 0; double avg = 0; for (int i=0; i
561 : 배열1 - 자가진단7 Java 123456789101112131415161718192021222324252627282930313233343536import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int max = 0, min = 10000; for (int i=0; i
560 : 배열1 - 자가진단6 Java 12345678910111213141516171819import java.util.Scanner; public class Main { static final int LIMIT = 10; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int min = 0; for (int i=0; i
559 : 배열1 - 자가진단5 Java 123456789101112import java.util.Scanner; public class Main { public static void main (String[] arg) { Scanner sc = new Scanner(System.in); double[] score = {85.6, 79.5, 83.1, 80.0, 78.2, 75.0}; int class_num1 = sc.nextInt() - 1; int class_num2 = sc.nextInt() - 1; System.out.printf("%.1f", (score[class_num1] + score[class_num2])); }}Colored by Color Scriptercs
558 : 배열1 - 자가진단4 Java 1234567891011121314151617181920212223import java.util.Scanner; public class Main { static final int LIMIT = 100; public static void main (String[] arg) { Scanner sc = new Scanner(System.in); int[] num = new int[LIMIT]; int start_num = 0; for (int i=0; i
557 : 배열1 - 자가진단3 Java 1234567891011import java.util.Scanner; public class Main { public static void main (String[] arg) { Scanner sc = new Scanner(System.in); String ch = sc.nextLine(); String[] ch_arr = ch.split(" "); System.out.print(ch_arr[0] + " " + ch_arr[3] + " " +ch_arr[6]); }}Colored by Color Scriptercs
556 : 배열1 - 자가진단2 Java 1234567891011public class Main { public static void main (String[] arg) { int[] arr = new int[10]; for (int i=0; i
555 : 배열1 - 자가진단1 Java 123456789101112131415import java.util.Scanner; public class Main { public static void main (String[] arg) { Scanner sc = new Scanner(System.in); String ch = sc.nextLine(); String[] ch_arr = ch.split(" "); for (int i=0; i