GUPTA MECHANICAL

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

Friday, 24 June 2022

[Solution] Count the ACs CodeChef Solution


There are 10 problems in a contest. You know that the score of each problem is either 1 or 100 points.

Chef came to know the total score of a participant and he is wondering how many problems were actually solved by that participant.

Given the total score P of the participant, determine the number of problems solved by the participant. Print 1 in case the score is invalid.

Input Format

  • First line will contain T, number of test cases. Then the test cases follow.
Solution Click Below:-  👉CLICK HERE👈
👇👇👇👇👇

  • Each test case contains of a single line containing a single integer P - denoting the number of points scored by the participant.

Output Format

For each testcase, output the number of problems solved by the participant or 1 if the score is

Fitness CodeChef Solution

Complementary Strand in a DNA CodeChef Solution 

Make all equal using Pairs Codechef Solution

Count the ACs CodeChef Solution 

Strong Elements CodeChef Solution

Reversal Sorting CodeChef Solution

AP Grid CodeChef Solution

Gcd and Lcm CodeChef Solution

The Subarray XOR CodeChef Solution

 invalid.

Constraints

  • 1T1000
  • 0P1000

No comments:

Post a Comment