You are conducting a contest at your college. This contest consists of two problems and n participants. You know the problem that a candidate will solve during the contest.
You provide a balloon to a participant after he or she solves a problem. There are only green and purple-colored balloons available in a market. Each problem must have a balloon associated with it as a prize for solving that specific problem. You can distribute balloons to each participant by performing the following operation:
Use green-colored balloons for the first problem and purple-colored balloons for the second problem
Use purple-colored balloons for the first problem and green-colored balloons for the second problem
You are given the cost of each balloon and problems that each participant solve. Your task is to print the minimum price that you have to pay while purchasing balloons.
SOLUTION
#include <iostream>
using namespace std;
int MinPricePurchasingBalloons()
{Â Â Â Â
 int cost_green_balloon , cost_purple_balloon , n;
cin >> cost_green_balloon;Â Â Â Â
cin >> cost_purple_balloon;Â Â Â Â
cin >> n;
    int status1 , status2;
    int total1 = 0 , total2 = 0;
Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
✓ Live Streaming✓ Interactive Chat✓ Private Shows✓ HD Quality
Anya is LIVE right now
FREE
Free to watch • No registration required • HD streaming
WANT TO BRING SOME VALUE TO YOU ALL @confusedkaushal - Tumblr Blog | Tumlook