Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. /*if (curr==end){
  2. std::vector<int> new_one;
  3. for (int i=0; i<4; i++){
  4. int sum=0;
  5. for (int j=0; j<(int)curr_tuple[i].size(); j++){
  6. sum+=planks[curr_tuple[i][j]];
  7. }
  8. new_one.push_back(sum);
  9. }
  10. all_tuples.push_back(new_one);
  11. return ;
  12. }*/
  13.  
  14. if (curr==end){
  15. std::vector<int> new_one(4,0);
  16. for (int i=0; i<4; i++){
  17. for (int j=0; j<(int)curr_tuple[i].size(); j++){
  18. new_one[i]+=planks[curr_tuple[i][j]];
  19. }
  20. }
  21. all_tuples.push_back(new_one);
  22. return ;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement