Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*if (curr==end){
- std::vector<int> new_one;
- for (int i=0; i<4; i++){
- int sum=0;
- for (int j=0; j<(int)curr_tuple[i].size(); j++){
- sum+=planks[curr_tuple[i][j]];
- }
- new_one.push_back(sum);
- }
- all_tuples.push_back(new_one);
- return ;
- }*/
- if (curr==end){
- std::vector<int> new_one(4,0);
- for (int i=0; i<4; i++){
- for (int j=0; j<(int)curr_tuple[i].size(); j++){
- new_one[i]+=planks[curr_tuple[i][j]];
- }
- }
- all_tuples.push_back(new_one);
- return ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement