본문 바로가기

JAVA/구름톤 챌린지9

구름톤 챌린지 15일차 - 과일 구매 https://level.goorm.io/exam/195697/%EA%B3%BC%EC%9D%BC-%EA%B5%AC%EB%A7%A4/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.*; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //마트에서 파는 과일의 개수 int money = sc.nextInt(); //플레이어가 가진 돈 int[][] fruits = new int[N][3]; for(int i=0;i 2023. 9. 1.
구름톤 챌린지 13일차 - 발전기(2) https://level.goorm.io/exam/195695/%EB%B0%9C%EC%A0%84%EA%B8%B0-2/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.*; class Houses{ int x; int y; public Houses(int i,int j){ this.x = i; this.y = j; } } class Main { public static int N; // 마을의 크기 public static int K; // 단지의 기준 public static int[][] building; //마을 public static int[] dx = {0, 0, -1, 1}; public .. 2023. 8. 30.
구름톤 챌린지 12일차 - 발전기 https://level.goorm.io/exam/195694/%EB%B0%9C%EC%A0%84%EA%B8%B0/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.*; class House{ int x; int y; public House(int i,int j){ this.x = i; this.y = j; } } class Main { public static int N; public static int[][] map; public static boolean[][] electricity; public static int[] dx = {0,0,-1,1}; public static int[] dy = {.. 2023. 8. 29.
구름톤 챌린지 11일차 - 통증 (2) https://level.goorm.io/exam/195693/%ED%86%B5%EC%A6%9D-2/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.*; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); int answer = -1; int[] array = new int[N/A+1]; for(int i=0; i i로 y -> array[i].. 2023. 8. 28.
구름톤 챌린지 9일차 https://level.goorm.io/exam/195691/%ED%8F%AD%ED%83%84-%EA%B5%AC%ED%98%84%ED%95%98%EA%B8%B0-2/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.Scanner; class Main { public static String[][] bomb; public static int[][] check; public static int[] plusx = {0,-1,0,1,0}; public static int[] plusy = {0,0,-1,0,1}; public static int N; public static void main(String[.. 2023. 8. 25.
구름톤 챌린지 8일차 https://level.goorm.io/exam/195690/%ED%86%B5%EC%A6%9D/quiz/1 구름LEVEL 난이도별 다양한 문제를 해결함으로써 SW 역량을 향상시킬 수 있습니다. level.goorm.io import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int damage = sc.nextInt(); int result = 0; //painkiller(14감소) 사용 개수 result+=damage/14; damage%=14; //medicine(7감소) 사용 개수 result+=damage/7; d.. 2023. 8. 23.