728x90
반응형

코테 노트/백준 113

백준 13565 침투 C++

https://www.acmicpc.net/problem/13565 13565번: 침투 첫째 줄에는 격자의 크기를 나타내는 M (2 ≤ M ≤ 1,000) 과 N (2 ≤ N ≤ 1,000) 이 주어진다. M줄에 걸쳐서, N개의 0 또는 1 이 공백 없이 주어진다. 0은 전류가 잘 통하는 흰색, 1은 전류가 통하지 않 www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ13565_bfs.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-A..

백준 1058 친구 C++

https://www.acmicpc.net/problem/1058 1058번: 친구 지민이는 세계에서 가장 유명한 사람이 누구인지 궁금해졌다. 가장 유명한 사람을 구하는 방법은 각 사람의 2-친구를 구하면 된다. 어떤 사람 A가 또다른 사람 B의 2-친구가 되기 위해선, 두 사람 www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ1058_bfs.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms development b..

백준 3184 양 C++

https://www.acmicpc.net/problem/3184 3184번: 양 첫 줄에는 두 정수 R과 C가 주어지며(3 ≤ R, C ≤ 250), 각 수는 마당의 행과 열의 수를 의미한다. 다음 R개의 줄은 C개의 글자를 가진다. 이들은 마당의 구조(울타리, 양, 늑대의 위치)를 의미한다. www.acmicpc.net 최종 풀이 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ3184_dfs.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms deve..

백준 2210 숫자판 점프 Python3

https://www.acmicpc.net/problem/2210 2210번: 숫자판 점프 111111, 111112, 111121, 111211, 111212, 112111, 112121, 121111, 121112, 121211, 121212, 211111, 211121, 212111, 212121 이 가능한 경우들이다. www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ2210_dfs.py GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON..

백준 2251 물통 Python 3

https://www.acmicpc.net/problem/2251 2251번: 물통 각각 부피가 A, B, C(1≤A, B, C≤200) 리터인 세 개의 물통이 있다. 처음에는 앞의 두 물통은 비어 있고, 세 번째 물통은 가득(C 리터) 차 있다. 이제 어떤 물통에 들어있는 물을 다른 물통으로 쏟아 부 www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ2251.py GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms devel..

백준 17779 게리맨더링 2 C++

https://www.acmicpc.net/problem/17779 17779번: 게리맨더링 2 재현시의 시장 구재현은 지난 몇 년간 게리맨더링을 통해서 자신의 당에게 유리하게 선거구를 획정했다. 견제할 권력이 없어진 구재현은 권력을 매우 부당하게 행사했고, 심지어는 시의 이름 www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ17779.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms development by cr..

백준 16173 점프왕 쩰리 (Small) Python3

https://www.acmicpc.net/problem/16173 16173번: 점프왕 쩰리 (Small) 쩰리는 맨 왼쪽 위의 칸에서 출발해 (행, 열)로 나타낸 좌표계로, (1, 1) -> (2, 1) -> (3, 1) -> (3, 3)으로 이동해 게임에서 승리할 수 있다. www.acmicpc.net GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ16173.py GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms development by creating..

백준 17142 연구소 3 C++

https://www.acmicpc.net/problem/17142 17142번: 연구소 3 인체에 치명적인 바이러스를 연구하던 연구소에 승원이가 침입했고, 바이러스를 유출하려고 한다. 바이러스는 활성 상태와 비활성 상태가 있다. 가장 처음에 모든 바이러스는 비활성 상태이고 www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ17142.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms development by crea..

백준 1325 효율적인 해킹 C++/PyPy

https://www.acmicpc.net/problem/1325 https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ1325_bfs.cpp GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Algorithms development by creating an account on GitHub. github.com // // main.cpp // BJ1325_bfs // // Created by Hwayeon on 2021/08/18. // #include #include #include #include ..

백준 11659 구간 합 구하기 4 Python3

https://www.acmicpc.net/problem/11659 11659번: 구간 합 구하기 4 첫째 줄에 수의 개수 N과 합을 구해야 하는 횟수 M이 주어진다. 둘째 줄에는 N개의 수가 주어진다. 수는 1,000보다 작거나 같은 자연수이다. 셋째 줄부터 M개의 줄에는 합을 구해야 하는 구간 i와 j www.acmicpc.net 최종 코드 GitHub -> https://github.com/hwayeon351/BEAKJOON-Algorithms/blob/main/BJ11659_bottom_up.py GitHub - hwayeon351/BEAKJOON-Algorithms: 백준 알고리즘 소스 코드 모음 백준 알고리즘 소스 코드 모음. Contribute to hwayeon351/BEAKJOON-Alg..

728x90
반응형