Professional Documents
Culture Documents
CC WS 3.3 Vaibhav Kaushik
CC WS 3.3 Vaibhav Kaushik
SEMESTER –5TH
TASKTOBEDONE/LOGISTICSUSED--
https://www.hackerrank.com/challenges/marcs-cakewalk/problem?isFullScreen=false
#include <bits/stdc++.h>
long sum = 0;
for (int i = 0; i < calorie.size(); i++)
{
sum += pow(2, i) * calorie[i];
}
return sum;
}
int main()
{
ofstream fout(getenv("OUTPUT_PATH"));
string n_temp;
getline(cin, n_temp);
int n = stoi(ltrim(rtrim(n_temp)));
string calorie_temp_temp;
getline(cin, calorie_temp_temp);
vector<int> calorie(n);
calorie[i] = calorie_item;
}
fout.close();
return 0;
}
s.erase(
s.begin(),
find_if(s.begin(), s.end(), not1(ptr_fun<int, int>(isspace)))
);
return s;
}
s.erase(
find_if(s.rbegin(), s.rend(), not1(ptr_fun<int,
int>(isspace))).base(), s.end()
);
return s;
}
string::size_type start = 0;
string::size_type end = 0;
start = end + 1;
}
tokens.push_back(str.substr(start));
return tokens;
}
OUTPUT:
10.2 AIM OF THE EXPERIMENT–
Greedy and Branch and Bound
TASKTOBEDONE/LOGISTICSUSED–
https://www.hackerrank.com/challenges/grid-
challenge/problem?isFullScreen=false
#include <bits/stdc++.h>
}
return "YES";
}
int main()
{
ofstream fout(getenv("OUTPUT_PATH"));
string t_temp;
getline(cin, t_temp);
int t = stoi(ltrim(rtrim(t_temp)));
vector<string> grid(n);
grid[i] = grid_item;
}
fout.close();
return 0;
}
s.erase(
s.begin(),
find_if(s.begin(), s.end(), not1(ptr_fun<int, int>(isspace)))
);
return s;
}
s.erase(
find_if(s.rbegin(), s.rend(), not1(ptr_fun<int,
int>(isspace))).base(), s.end()
);
return s;
}
OUTPUT:
• It will provide the modest experience that allows students to develop and
improve their experimental skills and develop ability to analyze data.
• Ability to demonstrate the practical skill on measurements and instrumentation
techniques of some Physics experiments. Students will develop the ability to use
appropriate physical concepts to obtain quantitative solutions to problems in
physics.
• Students will demonstrate basic experimental skills by setting up laboratory
equipment safely and efficiently, plan and carry out experimental procedures, and
report verbally and in written language the results of the experiment.
• Students will develop skills by the practice of setting up and conducting an
experiment with due regards to minimizing measurement error.