[프로그래머스] 실패율(C++)
·
개발/알고리즘
문제 링크https://school.programmers.co.kr/learn/courses/30/lessons/42889 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 코드 구현#include #include #include #include using namespace std;bool compare(const pair& a, const pair& b){ if (a.second == b.second) return a.first b.second;}vector solution(int N, vector stages){ vector answer; vector challenger(N + ..