We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
public static long taumBday(int b, int w, int bc, int wc, int z)
{
long normalCost = (long)b * bc + (long)w * wc;
long alternativeCost1 = (long)b * bc + (long)w * (bc + z);
long alternativeCost2 = (long)w * wc + (long)b * (wc + z);
return Math.Min(normalCost, Math.Min(alternativeCost1, alternativeCost2));
}
Taum and B'day
You are viewing a single comment's thread. Return to all comments →
This is my code in C#