Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1.     for (int i=0;i < 2;i++){ // verificar se a utilização por periodo é maior que a capacidade por periodo
  2.         for(int j=9;j >= 0;j--){
  3.             if (recs[i].ut_per[j] > recs[i].cap_per[j]){
  4.               sobra = recs[i].ut_per[j] - recs[i].cap_per[j];
  5.               plans[i].prod_per[j] = recs[i].cap_per[j];
  6.               plans[i].prod_per[j-1] = recs[i].ut_per[j-1] + sobra;
  7.             }
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement