Practice
Div-2 Contest
Div-1 Contest
In case the contest did not have two separate pages for Div-1 and Div-2, you can delete one of these above lines.

Tester: Prathamesh Sogale
Editorialist: Ram Agrawal

EASY

Math

# PROBLEM:

Given the number of ribbons of 3 different colors, Rahul wants to decorate some stalls using these. He uses a total of 3 ribbons to decorate one stall. He can’t use all the ribbons of the same color to decorate a stall. Find the maximum number of stalls he can decorate.

# EXPLANATION:

Let’s take A as the minimum, C as the maximum, and B as the other of the three colors of ribbons. Now if A+B\leq C/2 then he can decorate a maximum of A+B stalls else he can simply decorate (A+B+C)/3 stalls.

# SOLUTIONS:

Solution
from sys import stdin