문제 링크입니다: https://www.acmicpc.net/problem/10814 간단한 문제였지만 나이가 같을 경우에 std::sort의 경우 순서를 보장하지 않는 반면 std::stable_sort는 순서를 보장해주기 때문에 stable_sort를 사용하여 정렬해야 AC를 받을 수 있는 문제였습니다.stable_sort에 대해서는 다음 링크를 참고하시면 됩니다!(https://en.cppreference.com/w/cpp/algorithm/stable_sort) #include #include #include #include using namespace std; int N; vector v; bool cmp(pair a, pair b) { if (a.first < b.first) return tr..