GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Friday 20 May 2022

[Solution] Practice makes us perfect CodeChef Solution | CodeChef Problem Solution 2022

Most programmers will tell you that one of the ways to improve your performance in competitive programming is to practice a lot of problems.

Our Chef took the above advice very seriously and decided to set a target for himself.

  • Chef decides to solve at least 10 problems every week for 4 weeks.
Solution Click Below:-  CLICK HERE


Given the number of problems he actually solved in each week over 4 weeks as P1,P2,P3, and P4, output the number of weeks in which Chef met his target.

Input Format

There is a single line of input, with 4 integers P1,P2,P3, and P4. These are the number of problems







 solved by Chef in each of the 4 weeks.

Output Format

Output a single integer in a single line - the number of weeks in which Chef solved at least 10 problems.

Constraints

  • 1P1,P2,P3,P4100

No comments:

Post a Comment