코딩테스트/프로그래머스
2024. 10. 24.
[프로그래머스] 정수 삼각형
🔗 문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/43105 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr👩💻 코드#include #include #include using namespace std;int solution(vector> triangle) { int n = triangle.size(); for (int i = n - 2; i >= 0; i--) { for (int j = 0; j 📝 풀이삼각형의 가장 아래에서 두 번 째 줄부터 시작합니다.바로 아래 줄의 두 칸 중 큰 값을 더하여 값을..