본문 바로가기

Softeer 풀이4

[Sofreer 문제풀이] Lv.2(성적 평균) feat. Java 1. 성적 평균 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()); int N = Integer.parseInt(st.nextToken()); int K = Integer.parseInt(st.nextToken()); int[] arrScore = new int[N]; String[] tmp = br.readLine(.. 2023. 11. 3.
[Sofreer 문제풀이] Lv.2(GBC) feat. Java 1. GBC 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()); int N = Integer.parseInt(st.nextToken()); int M = Integer.parseInt(st.nextToken()); int[][] standard = new int[N][N]; int[][] test =new int[M][.. 2023. 11. 3.
[Sofreer 문제풀이] Lv.2(8단 변속기) feat. Java 1. 8단 변속기 import java.util.*; import java.io.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int asc = 0; int desc = 0; int[] arrG = new int[8]; for(int i=0; i 2023. 10. 29.
[Sofreer 문제풀이] Lv.1(주행거리 비교하기, 근무시간 A+B) feat. Java 1. 주행거리 비교하기 import java.util.*; import java.io.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A>B){ System.out.println("A"); }else if(A 2023. 10. 25.