Saved Bookmarks
| 1. |
There are N chefs (professional cooks) and M newbies (people who have just started cooking)Masterchef wants to hold a team competition in their kitchen. They can make teams of 2 types where each team contains 3 people. A team of 1 chef and 2 newbies.. A team of 2 chefs and 1 newbie.What is the maximum number of teams that the Masterchef can create for the competition?Function DescriptionComplete the masterchef function in the editor below. It has the following parameter(s):NameTypeDescriptionNParametersINTEGERNumber of ChefsMINTEGERNumber of NewbiesReturnThe function must return an INTEGER denoting the Maximum number of teams.Constraints-1 SNS 10^51 SMS 10^5Input Format For Custom TestingThe first line contains an integer, N, denoting the Number of Chefs.The next line contains an integer, M, denoting the Number of Newbies. |
|
Answer» I don't KNOW I don't know |
|