접근 방식 - 택배를 빨리 내릴수 있는걸 우선으로 담아야 최대한 많이 담을수 있다. 처음부터 끝까지 가서 계속 자리만 차지하는 택배를 없애야하는것.. - 정렬해서 처음-도착 위치에 지금 최대 택배를 몇번 담을수 있는지 차례로 계산한다. #include #include #include #include using namespace std; struct info{ int x; int y; int z; }; bool cmp(info a, info b){ if(a.y==b.y){ if(a.z==b.z){ return a.x>w; int m; cin>>m; int a,b,c; for(int i=0;i>a>>b>>c; t.push_back({a,b,c}); } sort(t.begin(),t.end(),cmp); //..