99클럽
-
- 오늘의 학습 키워드 : 벨만포드 알고리즘[문제 이름 : 타임 머신(백준 , G4)]문제 url : https://www.acmicpc.net/problem/11657내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static ArrayList[] A; static int n,m; static long[] dist; static final long INF = Long.MAX_VALUE; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputSt..
99클럽 코테 스터디 29일차 TIL [BellmanFord]- 오늘의 학습 키워드 : 벨만포드 알고리즘[문제 이름 : 타임 머신(백준 , G4)]문제 url : https://www.acmicpc.net/problem/11657내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static ArrayList[] A; static int n,m; static long[] dist; static final long INF = Long.MAX_VALUE; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputSt..
2024.11.25 -
- 오늘의 학습 키워드 : 조합[문제 이름 : 이모티콘 할인행사 (프로그래머스 2023 KAKAO 인턴, Lv 2)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/150368내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { static int n, m; static int[] discounts = {10, 20, 30, 40}; static int maxSubscribers = 0; static int maxSales = 0; public int[] solution(int[][] users, int[] emoticons) { n = users.le..
99클럽 코테 스터디 28일차 TIL [조합]- 오늘의 학습 키워드 : 조합[문제 이름 : 이모티콘 할인행사 (프로그래머스 2023 KAKAO 인턴, Lv 2)]문제 url : https://school.programmers.co.kr/learn/courses/30/lessons/150368내가 작성한 코드는 아래와 같다.import java.util.*;class Solution { static int n, m; static int[] discounts = {10, 20, 30, 40}; static int maxSubscribers = 0; static int maxSales = 0; public int[] solution(int[][] users, int[] emoticons) { n = users.le..
2024.11.25 -
- 오늘의 학습 키워드 : DP[문제 이름 : 지름길 (백준, S1)]문제 url : https://www.acmicpc.net/problem/1446내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static int[][] graph; static int[] dp; static int n, d; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new..
99클럽 코테 스터디 27일차 TIL [DP]- 오늘의 학습 키워드 : DP[문제 이름 : 지름길 (백준, S1)]문제 url : https://www.acmicpc.net/problem/1446내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static int[][] graph; static int[] dp; static int n, d; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new..
2024.11.24 -
- 오늘의 학습 키워드 : DP[문제 이름 : 로봇 조종하기 (백준, G2)]문제 url : https://www.acmicpc.net/problem/2169내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;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.parse..
99클럽 코테 스터디 25일차 TIL [DP]- 오늘의 학습 키워드 : DP[문제 이름 : 로봇 조종하기 (백준, G2)]문제 url : https://www.acmicpc.net/problem/2169내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;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.parse..
2024.11.22 -
- 오늘의 학습 키워드 : Greedy[문제 이름 : 저울 (백준, G2)]문제 url : https://www.acmicpc.net/problem/2437내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); StringTokenizer st = new StringToken..
99클럽 코테 스터디 24일차 TIL [Greedy]- 오늘의 학습 키워드 : Greedy[문제 이름 : 저울 (백준, G2)]문제 url : https://www.acmicpc.net/problem/2437내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); StringTokenizer st = new StringToken..
2024.11.20 -
- 오늘의 학습 키워드 : 조합(백트래킹)[문제 이름 : 치킨 배달 (백준, G5)]문제 url : https://www.acmicpc.net/problem/15686내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static int n,m; static ArrayList house = new ArrayList(); static ArrayList chicken = new ArrayList(); static int minDistance = Integer.MAX_VALUE; public static void main(String[] args) throws IOException { Buf..
99클럽 코테 스터디 23일차 TIL [조합 - 백트래킹]- 오늘의 학습 키워드 : 조합(백트래킹)[문제 이름 : 치킨 배달 (백준, G5)]문제 url : https://www.acmicpc.net/problem/15686내가 작성한 코드는 아래와 같다.import java.util.*;import java.io.*;public class Main { static int n,m; static ArrayList house = new ArrayList(); static ArrayList chicken = new ArrayList(); static int minDistance = Integer.MAX_VALUE; public static void main(String[] args) throws IOException { Buf..
2024.11.19