updated at 2023. 1. 29. 오후 8:10:48

This commit is contained in:
rl544
2023-01-29 20:10:48 +09:00
parent fb5d77c321
commit 59c116f209
@@ -21,16 +21,13 @@ class Solution {
tmp = del;
if(dm<x) dm = x-1;
}
else {
tmp = del; //작을때
}
else tmp = del; //작을때
deliveries[x] -= tmp;
delCap += tmp;
}
}
if(delCap == cap) break;
}
for(int x = lm2; x>=0; x--){
int pic = pickups[x];
if(pic == 0) continue;
@@ -45,9 +42,7 @@ class Solution {
tmp = pic;
if(pm<x) pm = x-1;
}
else {
tmp = pic; //작을때
}
else tmp = pic; //작을때
pickups[x] -= tmp;
pickCap += tmp;
}