17140번 - 이차원 배열과 연산
sort로 정렬할떄
vector<pair<int,int>> v[n] 따위를 정렬한다고 했을떄
썡으로 sort(v.begin, v.end, My_comp)를 할떄와
for(int i=1; i<=Mx_r; i++)
sort(v[i].begin,v[i].end, My_comp
를 이용할떄의 차이가 왜 발생하는지가 궁금합니다.
22~31줄
85~89 줄 봐주시면 감사하겠습니다.
댓글을 작성하려면 로그인해야 합니다.
hajacokr 2년 전
sort로 정렬할떄
vector<pair<int,int>> v[n] 따위를 정렬한다고 했을떄
썡으로 sort(v.begin, v.end, My_comp)를 할떄와
for(int i=1; i<=Mx_r; i++)
sort(v[i].begin,v[i].end, My_comp
를 이용할떄의 차이가 왜 발생하는지가 궁금합니다.
22~31줄
85~89 줄 봐주시면 감사하겠습니다.